Search found 243 matches

by Duha
14 Oct 2013, 23:39
Forum: Coding
Topic: need help reading .ini file
Replies: 70
Views: 42267

Re: need help reading .ini file

Any file in data/mp with the same name as any file in data/base will override the latter file. The files in data/mp take priority. thank you The .wrf files are a list of files to be loaded into memory (and for scripts, also activated). They are kind of useless, in my opinion, and I have been slowly...
by Duha
10 Oct 2013, 23:30
Forum: Coding
Topic: need help reading .ini file
Replies: 70
Views: 42267

Re: need help reading .ini file

How pie files loader resolve path to pie when loading data/mp/stats: Is it use same cache as base? (lib\ivis_opengl\imdload.cpp:*modelGet) What will happens if there is file with same name in base and mp folder? Base will show one pie mp other? What will happens if there is no file in mp? Base and p...
by Duha
09 Oct 2013, 01:39
Forum: Coding
Topic: need help reading .ini file
Replies: 70
Views: 42267

Re: need help reading .ini file

I plan to add header in new style for ini files: Here is an example: https://github.com/Cjkjvfnby/warzone2100/commit/de89c3cf83b58e995c6c3e79623c9283233ee9d3 It looks bad on forum page: ;Section headers in brackets [...] is system ID of research items. This IDs should be unique. ;Following propertie...
by Duha
06 Oct 2013, 14:14
Forum: Mapping / Modding tools & discussions
Topic: A unified csv2ini converter
Replies: 30
Views: 16095

Re: A unified csv2ini converter

NoQ wrote:Probably the script could grep for parameter name and "value" word through game sources to try to figure out the default values?
Maybe.

I don't sure that body.ini "weaponSlots" default value 0 is good. (there is no such value used in ini files)
by Duha
06 Oct 2013, 12:08
Forum: Mapping / Modding tools & discussions
Topic: A unified csv2ini converter
Replies: 30
Views: 16095

Re: A unified csv2ini converter

I am working on stats validation script. It check is ini files is compatible with master rules. Note: This file can became outdated on each commit in master. This script can contain errors. usage: validate_stats.py [-h] stats_folders [stats_folders ...] example: validate_stats.py g:\warzone2100\data...
by Duha
05 Oct 2013, 22:05
Forum: Mapping / Modding tools & discussions
Topic: A unified csv2ini converter
Replies: 30
Views: 16095

Re: A unified csv2ini converter

NoQ wrote:P.S. Just curious: guys, what's going on in the repo? >_<
I am awaken :)
by Duha
03 Oct 2013, 23:14
Forum: Coding
Topic: need help reading .ini file
Replies: 70
Views: 42267

Re: need help reading .ini file

hitpoints for features and structures default value is 1 hitpoints for unit components default value is 0 Should default value be the same? No. Zero should be legal value for components, but not for the others. 1. Some features has hitpoints = 0 (and damagable = 0) Should them be changed to hitpoin...
by Duha
03 Oct 2013, 15:10
Forum: Addon discussions
Topic: Warzone Database (Stats viewer & calculator) by crab
Replies: 52
Views: 46316

Re: Warzone Database (Stats viewer & calculator) by crab

crab_ wrote: converter <-- who is author of this?
click history or blame button on github page.
by Duha
03 Oct 2013, 11:39
Forum: Addon discussions
Topic: Warzone Database (Stats viewer & calculator) by crab
Replies: 52
Views: 46316

Re: Warzone Database (Stats viewer & calculator) by crab

Pushed codes to github. https://github.com/crab312/warzone2100-database I ask this because then more people (like me) can help you with it! help is welcomed :D but I am not sure is anyone able to read my codes and understand it correctly, cause i never care about anything in my code. If you want to...
by Duha
02 Oct 2013, 22:40
Forum: Addon discussions
Topic: [Campaign 4] Release & Development topic
Replies: 343
Views: 189208

Re: [Campaign 4] Release & Development topic

Yes, that's the plan after the next release. No ETA yet. I'm taking a little break to address RL concerns that seem to always come up when least expected. Let's just say that I understand how Dr. Reed feels about humans sometimes. :lol2: I have made some patches for ini files to master, work still ...
by Duha
02 Oct 2013, 22:02
Forum: Coding
Topic: need help reading .ini file
Replies: 70
Views: 42267

Re: need help reading .ini file

hitpoints for features and structures default value is 1
hitpoints for unit components default value is 0

Should default value be the same?
by Duha
02 Oct 2013, 21:37
Forum: Coding
Topic: need help reading .ini file
Replies: 70
Views: 42267

Re: need help reading .ini file

baseWidth in structures and "width" in features handled in different way is it OK? Structures: psStats->baseWidth = ini.value("baseWidth", 0).toUInt(); ASSERT_OR_RETURN(false, psStats->baseWidth <= 100, "Invalid baseWidth '%d' for structure '%s'", psStats->baseWidth, ge...
by Duha
02 Oct 2013, 16:51
Forum: Coding
Topic: need help reading .ini file
Replies: 70
Views: 42267

Re: need help reading .ini file

I have some trouble with compilers: I don`t like them and my windows don`t want to work with them properly Did you tried Visual Studio as compiler for Warzone? I have troubles with compiling Warzone in Visual Studio after i re-installed windows, but i believe if i spend some days i will be able to ...
by Duha
02 Oct 2013, 00:15
Forum: Coding
Topic: need help reading .ini file
Replies: 70
Views: 42267

Re: need help reading .ini file

All "body", "hitpoints" and "bodyPoints" must have same name in ini files. In C++ code this property called "body". IMHO body is not best name, but for integrity with other code it is OK. I like hitpoint more. Why not just rename "->body" in low-lev...
by Duha
01 Oct 2013, 23:52
Forum: Coding
Topic: need help reading .ini file
Replies: 70
Views: 42267

Re: need help reading .ini file

1. rename bodyPoint and hitppoints fields to body in all files (that name used in stats.cpp: psStats->body) Plese do not do that. "body" is bad name for property, it's obvious. We have Body object already, so we cannot use object name as name of property. Droid.body = Body.body? :) All &q...