MrFlibble Posted November 30, 2013 Share Posted November 30, 2013 Nice! Which of these values are modified compared to the original settings (apart from the Palace one that is)? Quote Link to comment Share on other sites More sharing options...
drnovice Posted November 30, 2013 Author Share Posted November 30, 2013 repairCost = (si->o.buildCredits * 5) / (si->o.hitpoints * 3);Palace: 1Light Factory: 1Heavy Factory: 5Hi-Tech: 2IX: 2WOR: 1CY: 1Windtrap: 2Barracks: 1Starport: 1Refinery: 1Repair Facility: 5Turret: 1R-Turret: 2Spice Silo: 1Outpost: 1Yes it's a bit different by original repair costs, but I tried to make sense of relationship between HP and Build Cost. Again, the important thing is that this formula could work with modified values about existing Structures or even new structures created (therefore more than 512 HP structures). 1 Quote Link to comment Share on other sites More sharing options...
MrFlibble Posted December 1, 2013 Share Posted December 1, 2013 That's very cool! The repair expenditures in the original game needed the adjustments anyway. BTW, drnovice, what hex editor do you use? I have two quite old programmes, and when implementing one of your fixes (the radar unit count one to be exact) I ran into the problem that neither of my editors are able to replace large chunks of code with the find-and-replace command (in fact, out of the two only ICY Hexplorer has the find-and-replace option anyway). So I had to split the code into several parts and replace them one by one, which was a bit tedious, and could in fact introduce errors into the modified EXE. I assume that in more modern hex editors such routine is easily carried out by a single click, but I'm kind of not inclined to test several programmes out there to find out which does have this feature. Quote Link to comment Share on other sites More sharing options...
drnovice Posted December 1, 2013 Author Share Posted December 1, 2013 I usually I write byte per byte "on my hands".However you can use these ones:https://www.google.it/#q=copy+paste+hexHxD is a very good editor. 1 Quote Link to comment Share on other sites More sharing options...
Nyerguds Posted December 2, 2013 Share Posted December 2, 2013 BTW, drnovice, what hex editor do you use? I have two quite old programmes, and when implementing one of your fixes (the radar unit count one to be exact) I ran into the problem that neither of my editors are able to replace large chunks of code with the find-and-replace command (in fact, out of the two only ICY Hexplorer has the find-and-replace option anyway). So I had to split the code into several parts and replace them one by one, which was a bit tedious, and could in fact introduce errors into the modified EXE.I personally use Editpad Pro. It's technically a text editor, but, throw any binary file in it, or just press ctrl+h, and it switches to hexadecimal mode. Has search & replace that supports regex, even in hex mode I think. Only disadvantage is that it's a "free trial", meaning you gotta click away some small screen on startup every time. 1 Quote Link to comment Share on other sites More sharing options...
MrFlibble Posted December 2, 2013 Share Posted December 2, 2013 Interesting, thanks for the suggestion! Quote Link to comment Share on other sites More sharing options...
Nyerguds Posted December 3, 2013 Share Posted December 3, 2013 Unlike a lot of applications, Editpad Pro also overwrites on pasting, if you pressed the Insert key to switch from Insert to Overwrite mode :) And if you specifically tab to the bytes part in hex mode, it'll perfectly paste byte codes copied as text as the actual bytes. Quote Link to comment Share on other sites More sharing options...
3371-Alpha Posted December 24, 2017 Share Posted December 24, 2017 Anyone tried converting these fixes to the other versions of the game/exe? Also several of the referencing posts listed in the documentation are missing or broken. I assume you upgraded this forum at one point. I say that because the same thing happened to the Quake forums (I have multiple tastes in video games). Quote Link to comment Share on other sites More sharing options...
drnovice Posted March 30, 2018 Author Share Posted March 30, 2018 (edited) Hi! What other versions do you refer? I applied those mods to v1.07 EU if I remember correctly. If you want all documentation send me mp and I'll send you all stuff I worked for. Edited March 30, 2018 by drnovice Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.