[utility]war3.un-hex - mass fix hex numbers in map code
Moderator: Cheaters
Forum rules
While crediting should be allowed, please keep down the advertising. If you know who it's from, and they have a website, please link to it as a basic courtesy.
While crediting should be allowed, please keep down the advertising. If you know who it's from, and they have a website, please link to it as a basic courtesy.
-
- Senior Member
- Posts: 127
- Joined: March 27th, 2010, 2:32 pm
[utility]war3.un-hex - mass fix hex numbers in map code
Download
Update 1.0.1: fixed a tiny bug with line ending with symbol right after hex number.
This simple program serves its purpose - it converts all numbers in given code from hexademical (base 16) to 'normal' (base 10) system.
As you may already know, hexademical numbers are harder to read, and cause compilation errors when saving from world editor.
Code is replaced with 'smart' behaviour. It will not convert numbers withing strings, or mis-interpret numbers.
As you see, the 'interface' of the program is presented as 4 buttons:
» Proc. Field - convert all text from the left textbox and show the output in the right textbox.
» Proc. File - choose input and output files for processing.
This works much faster than field processing and does not have code length limitations.
Attention: this function uses stream processing. Do not choose the same file for input and output.
» About - show (un)important information about the author of the program.
» Exit - Quit the program.
Motivated by this topic
[spoiler="Technical information"]Created in VB2005.
101 line of code total.
4 Sub's, 1 function total.
No global variables were harmed while creating this program.
If you want source code, send me a PM [/spoiler]Have fun. If you found a bug \ have suggestion, tell me.
You do not have the required permissions to view the files attached to this post.
Last edited by YellowAfterlife on July 9th, 2010, 3:04 pm, edited 1 time in total.
-
- Super Moderator
- Posts: 3190
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
Re: [utility]war3.un-hex - mass fix hex numbers in map code
Woot Thanks alot.
PS: I recommend you re-post it in tool section
PS: I recommend you re-post it in tool section
Last edited by GeorgeMots on July 8th, 2010, 4:12 pm, edited 1 time in total.
Reason: moved
Reason: moved
-
- Senior Member
- Posts: 140
- Joined: June 4th, 2010, 10:47 am
- Location: Now 'n everywhere.
Re: [utility]war3.un-hex - mass fix hex numbers in map code
Yeah good job yellow! That will save our time.
1 l1ek t0 trOl1
-
- Forum Fanatic
- Posts: 311
- Joined: October 26th, 2009, 10:22 pm
- Title: mib^
Re: [utility]war3.un-hex - mass fix hex numbers in map code
oh awesome tho doubt il be using it a lot but doesnt hurt to have it around
Spoiler:
-
- Super Moderator
- Posts: 3190
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
Re: [utility]war3.un-hex - mass fix hex numbers in map code
Well I finaly got a chance to use it.. and it does fix the number yet it does alot of errors. "missing ).. syntax error" I can fix it sure.. but its the same as just fixing the hex number themselves.
-
- Grammar King
- Posts: 2115
- Joined: June 22nd, 2008, 10:11 pm
- Title: Worst human for 4eva
- Location: Mostly USEast
Re: [utility]war3.un-hex - mass fix hex numbers in map code
Meh, it never changed any parenthesis for me.
You could just not Vex Optimize your script .
You could just not Vex Optimize your script .
(20:53:52) Bartimaeus: Thank you, Jen.
(20:53:56) Bartimaeus: Truly, you are wise.
(23:44:12) Bartimaeus: I was in pubic school until middle school...
Learn how to extract and read RAW Codes here!
Need help? Click here and ask your question!
-
- Super Moderator
- Posts: 3190
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
Re: [utility]war3.un-hex - mass fix hex numbers in map code
As if I'm the on doing so
tough never mind I did it manually..
tough never mind I did it manually..
-
- Senior Member
- Posts: 127
- Joined: March 27th, 2010, 2:32 pm
Re: [utility]war3.un-hex - mass fix hex numbers in map code
haxorico wrote:Well I finaly got a chance to use it.. and it does fix the number yet it does alot of errors. "missing ).. syntax error" I can fix it sure.. but its the same as just fixing the hex number themselves.
You should have downloaded the 1.0.1 from the main download (mirror is still 1.0.0, I believe).
-
- Super Moderator
- Posts: 3190
- Joined: February 24th, 2009, 1:31 pm
- Location: JEW LAND
Re: [utility]war3.un-hex - mass fix hex numbers in map code
Well, its the first time Ive had this problem.
when there is a constant variable it doesn't delete the letter. ex:
will turn into
So it doe's delete the $ and converts to decimal digit, yet the hex character remains, but if its $FA it will be 250A. so F aint there anymore yet A is.
I made sure and re-downloaded the tool again (not attachment.. download link) and it says in the rar its 1.0.1.
when there is a constant variable it doesn't delete the letter. ex:
Code: Select all
globals
constant integer test = $A
endglobals
will turn into
Code: Select all
globals
constant integer test = 10A
endglobals
So it doe's delete the $ and converts to decimal digit, yet the hex character remains, but if its $FA it will be 250A. so F aint there anymore yet A is.
I made sure and re-downloaded the tool again (not attachment.. download link) and it says in the rar its 1.0.1.
-
- Newcomer
- Posts: 5
- Joined: October 15th, 2010, 11:47 am
Re: [utility]war3.un-hex - mass fix hex numbers in map code
I think 1.0.1 have bug too ($A->10A)
My bad english sorry
My bad english sorry