Search found 243 matches

by Duha
19 May 2013, 15:46
Forum: Mapping / Modding tools & discussions
Topic: The wztools repository
Replies: 8
Views: 3273

Re: The wztools repository.

NoQ wrote:I also had to work around str.maketrans(), but now it runs on python2 as well, thanks!
I have never use it. What task you want to do with it?
by Duha
18 May 2013, 10:39
Forum: Mapping / Modding tools & discussions
Topic: The wztools repository
Replies: 8
Views: 3273

Re: The wztools repository.

NoQ wrote: Probably some .exe wrapper for python, if there exists one, would be useful for those who have no clue what python is?

Code: Select all

python.exe file.py
:)


PS. May be this will allow to launch you script on python2

Code: Select all

from __future__ import print_function
by Duha
18 May 2013, 09:46
Forum: Mapping / Modding tools & discussions
Topic: A unified csv2ini converter
Replies: 30
Views: 10050

Re: A unified csv2ini converter

I guess i'd do it my way :oops: as it's currently going very quickly (10 minutes per file convertor, until i get to research, where, thanks to Duha , we already have a code to merge). Also i renamed the repo and thrown more stuff into it (including a tool for checking correctness of conversion by c...
by Duha
16 May 2013, 01:06
Forum: Mapping / Modding tools & discussions
Topic: A unified csv2ini converter
Replies: 30
Views: 10050

Re: A unified csv2ini converter

Note fdb43a35f583431db8a020c69ab98326a9450d24 . Thinking about moving some of the other weapons abilities into flags as well. Let's see if Duha comes up with anything though (: Sorry I fill ill a little. Flags are better. IMHO it is not hard to add some wiki entry for small changes. in result we wi...
by Duha
13 May 2013, 07:45
Forum: Mapping / Modding tools & discussions
Topic: A unified csv2ini converter
Replies: 30
Views: 10050

Re: A unified csv2ini converter

NoQ wrote: Yay. Maybe. You're having nice upgrades conversion! :D
What's the plan then? Command me.
I need a couple of days to add support for mod convert, think about structure add more scripts.
by Duha
13 May 2013, 00:49
Forum: Coding
Topic: need help reading .ini file
Replies: 70
Views: 21946

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 ? (: https://github.c...
by Duha
13 May 2013, 00:44
Forum: Mapping / Modding tools & discussions
Topic: A unified csv2ini converter
Replies: 30
Views: 10050

Re: A unified csv2ini converter

Trying to make one. I start to make some. Now it is just collection of scripts. Later I will combine them together to convert mod in one click. https://github.com/Cjkjvfnby/wz_convertor (python 2.7) https://github.com/haoNoQ/csv2ini/blob/master/csv2ini.py It's written in python3 and currently is ca...
by Duha
12 May 2013, 21:00
Forum: Coding
Topic: need help reading .ini file
Replies: 70
Views: 21946

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 ...
by Duha
07 May 2013, 22:28
Forum: Coding
Topic: need help reading .ini file
Replies: 70
Views: 21946

Re: need help reading .ini file

Per wrote:Any chance of getting the upgrades for campaign done soon? :)
Did we finsh with #4005 yet?

First try in Ticket #4010
by Duha
02 May 2013, 00:31
Forum: Coding
Topic: need help reading .ini file
Replies: 70
Views: 21946

Re: need help reading .ini file

Per 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!
I am traveling now. Will be back 12.05
by Duha
29 Apr 2013, 22:32
Forum: Coding
Topic: need help reading .ini file
Replies: 70
Views: 21946

Re: need help reading .ini file

Per wrote:
Duha wrote:Are all researches in base use same functions?
I don't know.

ээээ. Ok, I will try to do something :)
by Duha
29 Apr 2013, 19:12
Forum: Coding
Topic: need help reading .ini file
Replies: 70
Views: 21946

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/blob/upgrades/src/qtscriptfuncs.cpp#L4021 (used through https://github.com/perim/warzone...
by Duha
29 Apr 2013, 14:09
Forum: Coding
Topic: need help reading .ini file
Replies: 70
Views: 21946

Re: need help reading .ini file

Nice work. While you're at it, maybe you can write a script to transform from old functions.txt + new research.ini resultFunctions to even newer functions line in research.ini? Here is how it looks in upgrades branch: https://github.com/perim/warzone2100/blob/upgrades/data/mp/stats/research.ini Not...
by Duha
26 Apr 2013, 01:48
Forum: Coding
Topic: need help reading .ini file
Replies: 70
Views: 21946

Re: need help reading .ini file

In what format attach it to bugtracker? Just attach the .ini files you have made to the bugtracker. Your first attempt looks good. I'd like to see just one change, see below. http://developer.wz2100.net/ticket/4005 PS. When you changing c++ code to work with ini please leave some comment about fiel...
by Duha
24 Apr 2013, 01:28
Forum: Coding
Topic: need help reading .ini file
Replies: 70
Views: 21946

Re: need help reading .ini file

Do something and post result in bug tracker. In what format attach it to bugtracker? First attempt. https://www.dropbox.com/sh/x1k0kiun93emfpm/k5jxreymAd I don`t know waht to do with function. Should I merge them to researches? I don`t know what to do with template.avaliable (for base it has 7, 5 a...