Stat editor (Python, json)

Get some help with creating maps or modding.
Need a map editor or other tools, look here!
Post Reply
Radamat
New user
Posts: 5
Joined: 25 Dec 2014, 21:04

Stat editor (Python, json)

Post by Radamat » 24 Dec 2020, 14:19

Hello. I was thinking about conversion of Contingency to new stat format. So I have written python program that can edit stats in json-format.
contingency are allready json-comaptible, but I found my editor rather good and want to share it.
It can open wz-file and repack it. Editor were test up to state of successful save/load wz-file.
It uses PyQt5, numpy, zipfile and json.
Anybody may use it for you own purposes, it has "CC0" license.
Any proposals about how to improve it are wellcome.
Attachments
QWarzoneModEditor.py
(13.67 KiB) Downloaded 11 times
Last edited by Radamat on 25 Dec 2020, 20:10, edited 1 time in total.

PanCHo
Greenhorn
Posts: 8
Joined: 12 Aug 2019, 11:28
Contact:

Re: Stat editor (Python, json)

Post by PanCHo » 25 Dec 2020, 17:44

Looks bad for me, mods are not only contain stats but custom objects and scripts. What about rules? How you will edit them? Python is a bad choice for that anyway, QT even worse. I'm not even talking that same thing is already existing in the official repo, check out tools folder, it has interesting things. We are trying to get rid of that kind of things in WZ now but it is still appearing in this custom mod-editors-creators scripts. And what about that particular one: where is repo on github? If you don't have a repo for this don't even try to hope that somebody except you will work on that.
Want to improve something? Help us with map format, that one needs more help than stats. Everyone can use text editor and everyone who want make mods will understand how JSON works but not TTYP and LEV. Even schoolboy will figure out how to edit stats in 1 hour, better find more difficult tasks like terrain blending revisit. (btw welcome with your suggestions about format of this blending maps)
TL:DR not worth downloading

Radamat
New user
Posts: 5
Joined: 25 Dec 2014, 21:04

Re: Stat editor (Python, json)

Post by Radamat » 25 Dec 2020, 19:07

Thanks. Main purpouse of this editor is quick and comfortable (it is not yet) adding/editing of tech tree and component stats.
Why Python is bad choice fot text-file editing tools?
Qt, i find it good and customizable. I don't know it too deep to have problems with it's aspects some high level programmers speaking about.

A can can help with map format as with file format and information storage, but i know very litle about blending.
Anyway, may you give a link where is main discussion are going? Discord? how to get there?

Radamat
New user
Posts: 5
Joined: 25 Dec 2014, 21:04

Re: Stat editor (Python, json)

Post by Radamat » 25 Dec 2020, 19:39

it is not Mod editor. Warzone mods have very different parts (stats, scrips, ... ). Mod editor MUST know and take care about some values (weapon types for ex.) if thay are declared in other parts of mod. This tool main purpouse is tech tree and components adding/editing.
For now it lack of copy-paste functionality, import-export with dependencies control, links (fo ex, when you ctrl-lmb-clicks on 'Body5REC' string in 'givesComponent' field it should open editor for Body5REC component.

Qt is about GUI here. I dont know Qt well enough to have problems some strong programmes talking about.
But why Python is bad for stat editor? It has a lot of libs, good functionality of internal classes (types).

I saw stat editor in xlsx with online tool for export\import. Huh, well, if you have an elephant, you can pave a road with stones using elephants legs as hammers.

GitHub and other.. yes, I know. I don't use all the tools modern programmes must use.

Map format - i'm looking for discusion topic on forum, but has not found it yet. Discord? How to get there? I saw no invitation link.

User avatar
Counter Back
Trained
Trained
Posts: 67
Joined: 03 Aug 2020, 14:50
Location: Bogor, West Java, Indonesia

Re: Stat editor (Python, json)

Post by Counter Back » 11 Jan 2021, 07:33

yes, this is stats editor. you make a good work, it's good for me more easy to make the stats :good: .

but why is the language even Russian when entering one of the names (for example B1BaBaPerson01) the object stats. solved.
Someday I will show them the true nature of life! If they know, Regards from CB.

User avatar
Counter Back
Trained
Trained
Posts: 67
Joined: 03 Aug 2020, 14:50
Location: Bogor, West Java, Indonesia

Re: Stat editor (Python, json)

Post by Counter Back » 11 Jan 2021, 08:54

I fixed some little issues such as missing stats templates and inappropriate language:
Attachments
QWarzoneStatsEditor.py
just little update.
(13.74 KiB) Downloaded 9 times
Someday I will show them the true nature of life! If they know, Regards from CB.

Post Reply