Home » MODDING HQ 1.13 » v1.13 Coding Talk » Strategic Map load in source code
Re: Strategic Map load in source code[message #339050 is a reply to message #339048]
|
Wed, 21 January 2015 01:23
|
|
Flugente |
|
Messages:3507
Registered:April 2009 Location: Germany |
|
|
Yoiks. Not trying to rain on your parade, but that would be very, VERY hard. For starters, all sector IDs are stored in an UINT8 - which doesn't take numbers higher than 255, thus does not allow maps bigger than 16x16. If you want to rewrite that, expect at least a week running over the entire code and replacing UINT8 with UINT16 (this will break the game in numerous places). As all enemy groups, mercs, towns, inventories etc. have sector coordinates, you have to remap those too.
An alternative would be to have a second 16x16 map as you intend - but then you still have to tell the code everywhere a sector is mentioned whether map A or B is used, basically in the entire code. Note that sector manipulation code is relatively pristine, you'll find undocumented, dubious code there that hasn't been touched for over a decade ;)
Loading an alternate version of a sector you already visited (to, say, simulate ongoing destruction/construction of buildings) would be somewhat easier (and often asked for in the last years).
I can't tell you not to do this (it is good that more people volunteer for coding on our beloved game), but unless you have a truly epic frustration tolerance I wouldn't recommend this.
Hmm.
If you are looking for relatively easy code in 1.13, I'd go to the Laptop websites or the trait system - there's simply enough of both to get good examples. Be warned, however, that 1.13 isn't exactly good C++, it's more C with a bit of C++ mixed in.
I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.
If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.Report message to a moderator
|
|
|
|
|
|
Strategic Map load in source code
By: Drecouse on Tue, 20 January 2015 16:37
|
|
|
Re: Strategic Map load in source code
By: Flugente on Tue, 20 January 2015 22:08
|
|
|
Re: Strategic Map load in source code
By: Drecouse on Wed, 21 January 2015 00:05
|
|
|
Re: Strategic Map load in source code
By: Flugente on Wed, 21 January 2015 00:27
|
|
|
Re: Strategic Map load in source code
By: Drecouse on Wed, 21 January 2015 00:53
|
|
|
Re: Strategic Map load in source code
|
|
|
Re: Strategic Map load in source code
By: Flugente on Wed, 21 January 2015 01:23
|
|
|
Re: Strategic Map load in source code
By: CVB on Wed, 21 January 2015 09:57
|
|
|
Re: Strategic Map load in source code
By: Drecouse on Wed, 21 January 2015 14:26
|
|
|
Re: Strategic Map load in source code
By: Flugente on Wed, 21 January 2015 14:28
|
|
|
Re: Strategic Map load in source code
By: CVB on Wed, 21 January 2015 16:42
|
|
|
Re: Strategic Map load in source code
By: CVB on Wed, 21 January 2015 17:14
|
|
|
Re: Strategic Map load in source code
By: Flugente on Wed, 21 January 2015 21:27
|
|
|
Re: Strategic Map load in source code
By: Drecouse on Thu, 22 January 2015 16:31
|
|
|
Re: Strategic Map load in source code
By: Flugente on Thu, 22 January 2015 22:11
|
|
|
Re: Strategic Map load in source code
By: Drecouse on Fri, 23 January 2015 13:35
|
|
|
Re: Strategic Map load in source code
By: Drecouse on Thu, 29 January 2015 16:18
|
|
|
Re: Strategic Map load in source code
|
Goto Forum:
Current Time: Fri Jan 10 10:23:06 GMT+2 2025
Total time taken to generate the page: 0.01301 seconds
|