need help reading .ini file
Re: need help reading .ini file
Yes. You'll have to make that dict from looking at the new 'results' lines in the new research.ini file, I'm afraid. The values have changed.
Or you could read the source at https://github.com/perim/warzone2100/bl ... .cpp#L4021 (used through https://github.com/perim/warzone2100/bl ... es.js#L303)
Or you could read the source at https://github.com/perim/warzone2100/bl ... .cpp#L4021 (used through https://github.com/perim/warzone2100/bl ... es.js#L303)
Re: need help reading .ini file
I think I got algoritm of converting.Per wrote:Yes. You'll have to make that dict from looking at the new 'results' lines in the new research.ini file, I'm afraid. The values have changed.
Or you could read the source at https://github.com/perim/warzone2100/bl ... .cpp#L4021 (used through https://github.com/perim/warzone2100/bl ... es.js#L303)
Are all researches in base use same functions?
Errors in you ini:
Spoiler:
http://addons.wz2100.net/ developer
Re: need help reading .ini file
I don't know.Duha wrote:Are all researches in base use same functions?
The first and third differences are deliberate - the ECM stuff is all new and I changed it a bit now that I know how... Also, there are many other functions in functions.txt that have no counterpart in the research list - they are just left unused for some reason or another. The second is a copy/paste error - thanks for finding it!Duha wrote: Errors in you ini:Spoiler:
Re: need help reading .ini file
I don't know.Per wrote:Duha wrote:Are all researches in base use same functions?
ээээ. Ok, I will try to do something
http://addons.wz2100.net/ developer
Re: need help reading .ini file
Ok, I think my upgrades work is done now. Just waiting for you to port over the campaign data, and I'll merge into master.
Should be fun!
Should be fun!
Re: need help reading .ini file
I am traveling now. Will be back 12.05Per wrote:Ok, I think my upgrades work is done now. Just waiting for you to port over the campaign data, and I'll merge into master.
Should be fun!
http://addons.wz2100.net/ developer
Re: need help reading .ini file
Any chance of getting the upgrades for campaign done soon?
Re: need help reading .ini file
Did we finsh with #4005 yet?Per wrote:Any chance of getting the upgrades for campaign done soon?
First try in Ticket #4010
http://addons.wz2100.net/ developer
Re: need help reading .ini file
I am working on it. Templates code is ... weird.Duha wrote:Did we finsh with #4005 yet?
Thanks! See commentsDuha wrote:First try in Ticket #4010
Re: need help reading .ini file
As this seems to be over, i'm trying to produce a single easy-to-use script for converting all stats together from csv to ini, for simplifying user-made mods conversion from 3.1 to 3.2. If you guys still have any scripts you used for converting, could you please post them here? (:
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
Re: need help reading .ini file
Remaining work is doing something with limits.txt (not exactly sure what yet), converting .gam to .ini (if I get time), and nuking names.txt (we now have 'names' fields in the ini files instead, but they are currently unused).
I am also considering merging weaponsounds.ini and propulsionsounds.ini into weapons.ini and propulsion.ini, respectively.
I am also considering merging weaponsounds.ini and propulsionsounds.ini into weapons.ini and propulsion.ini, respectively.
Re: need help reading .ini file
I made some comments in ticket and github about researches.Per wrote:Remaining work is doing something with limits.txt (not exactly sure what yet), converting .gam to .ini (if I get time), and nuking names.txt (we now have 'names' fields in the ini files instead, but they are currently unused).
I am also considering merging weaponsounds.ini and propulsionsounds.ini into weapons.ini and propulsion.ini, respectively.
My script converts data almost as you done manually for mp. But some diffs in result stops me to convert base. I don`t know how to check if my conversation right.
I will put my scripts in public soon. I think how to merge them in one bundle.
If you describe what need to be converted I will convert it. May be you create some tickets for me?
http://addons.wz2100.net/ developer
Re: need help reading .ini file
https://github.com/Cjkjvfnby/wz_convertorNoQ wrote:As this seems to be over, i'm trying to produce a single easy-to-use script for converting all stats together from csv to ini, for simplifying user-made mods conversion from 3.1 to 3.2. If you guys still have any scripts you used for converting, could you please post them here? (:
It is collection of scripts that used to help Per. Little later I will make some changes to support mod convertation.
http://addons.wz2100.net/ developer
Re: need help reading .ini file
Emm. I just noticed that nexus and other campaign-specific structures (such as NX-WallTower-Rail3) were removed from structure.ini during conversion. This may break maps, as there are quite a lot of maps that were having such structures placed (they just look cool).
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam
Re: need help reading .ini file
Also, could we bring back researchstruct.txt (to merge into research.ini)? It might not be used much in the base game, but i use it a lot in my wzmini mod ("build bigger lab to research advanced stuff" etc.) Something like ?
Code: Select all
requiredStructure=CommandCenter,CommandRelayCenter
Maps | Tower Defense | NullBot AI | More NullBot AI | Scavs | More Scavs | Tilesets | Walkthrough | JSCam