The wztools repository

Get some help with creating maps or modding.
Need a map editor or other tools, look here!
Post Reply
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

The wztools repository

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.
User avatar
Berg
Regular
Regular
Posts: 2204
Joined: 02 Sep 2007, 23:25
Location: Australia

Re: The wztools repository.

Post by Berg »

If they are in python microsoft users that have installed python should know how to use them.
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: The wztools repository.

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?
User avatar
Duha
Trained
Trained
Posts: 287
Joined: 25 Mar 2012, 20:05
Location: SPb, Russia

Re: The wztools repository.

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?

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
http://addons.wz2100.net/ developer
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: The wztools repository.

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!
User avatar
Duha
Trained
Trained
Posts: 287
Joined: 25 Mar 2012, 20:05
Location: SPb, Russia

Re: The wztools repository.

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
User avatar
Duha
Trained
Trained
Posts: 287
Joined: 25 Mar 2012, 20:05
Location: SPb, Russia

Re: The wztools repository

Post by Duha »

Add me to repo.

I am try to generate some docs. https://googledrive.com/host/0B12sy1FQt ... hWUFQzSzA/ It is real outdated. I can push code to repo.
http://addons.wz2100.net/ developer
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: The wztools repository

Post by NoQ »

Done, hope it worked (:
User avatar
Duha
Trained
Trained
Posts: 287
Joined: 25 Mar 2012, 20:05
Location: SPb, Russia

Re: The wztools repository

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
Post Reply