wz stats tool(Windows exe only)

For code related discussions and questions
Post Reply
User avatar
Watermelon
Code contributor
Code contributor
Posts: 551
Joined: 08 Oct 2006, 09:37

wz stats tool(Windows exe only)

Post by Watermelon » 12 Aug 2007, 22:19

Fortunately I am finally motivated to add a gui to the wzstats converter I wrote some time ago.  ;D

Image

This one uses AntTweakBar http://www.antisphere.com/Wiki/tools:anttweakbar for gui support,AntTweakBar is damn easy to implement and has pretty cool interface,also works quite well with both opengl and directX.Though the major downside of using AntTweakBar is that it doesnt support text edit,so I added a simple 'text box' to make modifying chars/strings possible.

Usage:
wztools [filename.extension] [stats type]


1.start->run->cmd->cd to the directory where wztools.exe and dlls and txt files are located then type
wztools weapons.txt 0

2.create a shortcut and appends the 'weapons.txt' and '0' to the target field

"C:\warzone\data\wztools.exe" weapons.txt 0

either way it should start gui to edit weapons.txt fields


statsType:
0 Weapon (weapons.txt)
1 Templates (templates.txt)
2 Structures (structures.txt)
3 BodyPropulsionImd
4 AssignWeapon
5 AssignStructureWeapon
6 Body
7 Propulsion
20 Research
21 pre-requisite Research
22 ResearchStructure
23 ResearchFunction
24 ResearchResultComponent
25 ResearchResultStructure

the interface of AntTweakBar is self-explanatory

Tips:

nav bar:
use itemIndex to goto corresponding line you want to modify
use save Changes to save changes to file

text box:
click on a string item button to open the text box.
use backspace to remove characters
use esc or space to DISCARD changes and close text box
use numeric keyboard enter to makes changes to data in memory and close text box

This one is windows exe only,I will send the source to someone with good make/gnu tools knowledge to check whether it works well on linux or not,since I am too lazy to mess around with linux-specific stuff atm.

edit:
Updated screenshot to reflect 0.4 changes
Removed old versions the downloads are in my last replies to this thread now
Last edited by Watermelon on 26 Sep 2007, 06:09, edited 1 time in total.
tasks postponed until the trunk is relatively stable again.

User avatar
Deathguise
Trained
Trained
Posts: 85
Joined: 06 Jul 2007, 20:08
Location: UK

Re: wz stats tool(Windows exe only)

Post by Deathguise » 14 Aug 2007, 21:05

This is quite a nice little tool, definetly faster than editing the files by hand, thanks this will make converting my old balance/fix mod less of a headache.
"Abandon All Hope" - Chiggy von Richthofen

User avatar
Watermelon
Code contributor
Code contributor
Posts: 551
Joined: 08 Oct 2006, 09:37

Re: wz stats tool(Windows exe only)

Post by Watermelon » 18 Aug 2007, 10:41

Deathguise wrote: This is quite a nice little tool, definetly faster than editing the files by hand, thanks this will make converting my old balance/fix mod less of a headache.
Thanks,glad to know it's useful.I will look into the possibilities to make a pie modelling tool with that lib.
tasks postponed until the trunk is relatively stable again.

User avatar
Watermelon
Code contributor
Code contributor
Posts: 551
Joined: 08 Oct 2006, 09:37

Re: wz stats tool(Windows exe only)

Post by Watermelon » 19 Aug 2007, 17:38

0.2:
Fixes:
*Fixed a memory leak bug(i forgot to free the in buffer  ;D)

Features:
*Added dummy int field(always 0 read-only because I dont want to change AntTweakBar source code) to display the value of string field
Last edited by Watermelon on 22 Aug 2007, 22:53, edited 1 time in total.
tasks postponed until the trunk is relatively stable again.

User avatar
Watermelon
Code contributor
Code contributor
Posts: 551
Joined: 08 Oct 2006, 09:37

Re: wz stats tool(Windows exe only)

Post by Watermelon » 22 Aug 2007, 22:51

0.3:
Fixes:
*Fixed cpu hog by limiting the application to 100 fps
*Removed useless gl states copied from AntTweakBar examples

Features:
*Added a partial match search
*Added support for file names.txt in-game name search
*The window caption now display the in-game name of entry being edited
Last edited by Watermelon on 26 Sep 2007, 06:07, edited 1 time in total.
tasks postponed until the trunk is relatively stable again.

Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18
Contact:

Re: wz stats tool(Windows exe only)

Post by Giel » 22 Aug 2007, 23:11

Question: what's the difference between the "mingw" download and the one without "mingw" ?
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh

User avatar
Watermelon
Code contributor
Code contributor
Posts: 551
Joined: 08 Oct 2006, 09:37

Re: wz stats tool(Windows exe only)

Post by Watermelon » 23 Aug 2007, 12:39

Giel wrote: Question: what's the difference between the "mingw" download and the one without "mingw" ?
The one without mingw is compiled with MSVC,so it requires VC8 redist to be installed.Apparently some ppl had problems running my mingw builds,so I compiled both MSVC binaries and mingw binaries.
tasks postponed until the trunk is relatively stable again.

User avatar
Watermelon
Code contributor
Code contributor
Posts: 551
Joined: 08 Oct 2006, 09:37

Re: wz stats tool(Windows exe only)

Post by Watermelon » 26 Sep 2007, 06:06

0.4:
Fixes:
*Fixed a bug with wrong number of bars created for super long cvs lines(weapons.txt)

Features:
*Changed color to less dazzling black/grey.
*Upgraded to AntTweakBar 1.10, now it supports entering values directly in addition to rotor.
Attachments
wztools0.4.zip
(273.4 KiB) Downloaded 566 times
wztools0.4mingw.zip
(306.35 KiB) Downloaded 551 times
tasks postponed until the trunk is relatively stable again.

Ablationer
New user
Posts: 3
Joined: 04 Oct 2007, 21:00

Re: wz stats tool(Windows exe only)

Post by Ablationer » 04 Oct 2007, 21:57

I cannot run the program, when i try the normal, it says the system couldn't run the program

and when i try the mingw, it crashes

I made the shortcut and tryed, but it says the application is incorect


I did all the steps indicated, but nothing works :(

User avatar
Watermelon
Code contributor
Code contributor
Posts: 551
Joined: 08 Oct 2006, 09:37

Re: wz stats tool(Windows exe only)

Post by Watermelon » 05 Oct 2007, 08:59

Maybe the 0.4 exe's are broken,I compiled 0.41 version,you can see if they fix your crash problems.

0.41:
*Changed string box to AntTweakBar 1.10 string edit varBars
Attachments
wztools0.41mingw.zip
(306.14 KiB) Downloaded 591 times
wztools0.41.zip
(273.16 KiB) Downloaded 630 times
tasks postponed until the trunk is relatively stable again.

Ablationer
New user
Posts: 3
Joined: 04 Oct 2007, 21:00

Re: wz stats tool(Windows exe only)

Post by Ablationer » 05 Oct 2007, 20:32

Thanks, but still both don't work, I got the same problems again

User avatar
Watermelon
Code contributor
Code contributor
Posts: 551
Joined: 08 Oct 2006, 09:37

Re: wz stats tool(Windows exe only)

Post by Watermelon » 05 Oct 2007, 20:47

weird did it crash if you simply double-click the exe without any arguments passed to it?

an incorrect argument or arguments combination would cause the app to crash since it's not armored.
tasks postponed until the trunk is relatively stable again.

Ablationer
New user
Posts: 3
Joined: 04 Oct 2007, 21:00

Re: wz stats tool(Windows exe only)

Post by Ablationer » 08 Oct 2007, 04:39

i tried the cmd , and the shortcut, with the argument, and it doesn't work

Post Reply