Get some help with creating maps or modding.
Need a map editor or other tools, look here!
-
NoQ
- Special
- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Post
by NoQ »
I'm gathering some simple little command-line tools i made for working with maps and mods, here:
Tools already included:
- count-oils.py (python2) that counts oil resources in a map (.wz file).
- ini-diff (qt4) that calculates differences between two ini files, in a sense useful for making diff-mods (here is some explanation of what it is).
- csv2ini.py (python3) (UNFINISHED) converter we've just been discussing.
TODO: not sure if i'll be able to provide executables for MS Windows.
Last edited by
NoQ on 18 May 2013, 09:53, edited 2 times in total.
-
Berg
- Regular
- Posts: 2204
- Joined: 02 Sep 2007, 23:25
- Location: Australia
Post
by Berg »
If they are in python microsoft users that have installed python should know how to use them.
-
NoQ
- Special
- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Post
by NoQ »
Then somebody needs only to compile the ini-diff tool (it's in Qt4, should be trivial if you have it), before i learn to cross-compile Qt4 (:
Probably some .exe wrapper for python, if there exists one, would be useful for those who have no clue what python is?
-
Duha
- Trained
- Posts: 287
- Joined: 25 Mar 2012, 20:05
- Location: SPb, Russia
Post
by Duha »
NoQ wrote:
Probably some .exe wrapper for python, if there exists one, would be useful for those who have no clue what python is?
PS. May be this will allow to launch you script on python2
Code: Select all
from __future__ import print_function
http://addons.wz2100.net/ developer
-
NoQ
- Special
- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Post
by NoQ »
Duha wrote:PS. May be this will allow to launch you script on python2
Code: Select all
from __future__ import print_function
Nice!
I also had to work around str.maketrans(), but now it runs on python2 as well, thanks!
-
Duha
- Trained
- Posts: 287
- Joined: 25 Mar 2012, 20:05
- Location: SPb, Russia
Post
by Duha »
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?
http://addons.wz2100.net/ developer
-
NoQ
- Special
- Posts: 6226
- Joined: 24 Dec 2009, 11:35
- Location: /var/zone
Post
by NoQ »
Done, hope it worked (:
-
Duha
- Trained
- Posts: 287
- Joined: 25 Mar 2012, 20:05
- Location: SPb, Russia
Post
by Duha »
NoQ wrote:Done, hope it worked (:
It works. Pushed some data.
https://github.com/haoNoQ/wztools2100/t ... /stat_docs
json files with data is real outdated. I will fix some critical today or when back from vacation.
PS it will be 3.2 documentation.
Hint. You can edit README.md from github interface.
http://addons.wz2100.net/ developer