• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

DLL files and HEX editing

Pieter Boelen

Navigation Officer
Administrator
Storm Modder
Hearts of Oak Donator
Merciless Mark and me have been trying to figure out how to change some code for the flag textures. We found some code in RESOURCE\INI\rigging.ini where the flag textures are defined:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->[FLAGS]

; TEXTURE PARAMETERS
; NK I think this may well be unused.
TextureName = flagall.tga
TextureCount = 8
EnglandPennonTex = 0
SpanishPennonTex = 0
FrenchPennonTex = 0
PiratePennonTex = 0
EnglishFlagTex = 1
SpanishFlagTex = 4
FrenchFlagTex = 2
PirateFlagTex = 5
PortugalFlagTex = 3
DatchFlagTex = 0
; KK
NathanielFlagTex = 7<!--c2--></div><!--ec2-->
We also found out that this code is referenced to by MODULES\rigging.dll. You can change the texture filename, but that isn't of much use. We want to add some new texture filename, so we can add each flag to a seperate texture file (much easier for people choosing different flagpacks). So does anybody know how to ADD code to DLL files?

BTW: Strange thing with the Dutch: DatchFlagTex is NOT referenced in rigging.ini. Not is Dutch or Holland. What the HECK??? <img src="style_emoticons/<#EMO_DIR#>/piratesing.gif" style="vertical-align:middle" emoid=":shock" border="0" alt="piratesing.gif" />
 
<!--quoteo(post=145451:date=Apr 14 2006, 04:45 AM:name=Capitan Blood)--><div class='quotetop'>QUOTE(Capitan Blood @ Apr 14 2006, 04:45 AM) [snapback]145451[/snapback]</div><div class='quotemain'><!--quotec-->
hm, i know one way - disassemblation dll, and edit assembler code:)
<!--QuoteEnd--></div><!--QuoteEEnd-->
What does that mean? How do you do that? <img src="style_emoticons/<#EMO_DIR#>/piratesing.gif" style="vertical-align:middle" emoid=":shock" border="0" alt="piratesing.gif" />
 
<!--quoteo(post=145572:date=Apr 15 2006, 12:48 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE(Pieter Boelen @ Apr 15 2006, 12:48 PM) [snapback]145572[/snapback]</div><div class='quotemain'><!--quotec-->
<!--quoteo(post=145451:date=Apr 14 2006, 04:45 AM:name=Capitan Blood)--><div class='quotetop'>QUOTE(Capitan Blood @ Apr 14 2006, 04:45 AM) [snapback]145451[/snapback]</div><div class='quotemain'><!--quotec-->
hm, i know one way - disassemblation dll, and edit assembler code:)
<!--QuoteEnd--></div><!--QuoteEEnd-->
What does that mean? How do you do that? <img src="style_emoticons/<#EMO_DIR#>/piratesing.gif" style="vertical-align:middle" emoid=":shock" border="0" alt="piratesing.gif" />
<!--QuoteEnd--></div><!--QuoteEEnd-->


Lots of (hard) work! <img src="style_emoticons/<#EMO_DIR#>/bookish.gif" style="vertical-align:middle" emoid=":mm" border="0" alt="bookish.gif" />

The DLL is a piece of code in language understand by the machine - assembler is called.

It's possible to "traslate" the DLL to assembler sentences, then modify them

I will not dare to try... know my own limits <img src="style_emoticons/<#EMO_DIR#>/icon_wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="icon_wink.gif" />
 
<!--quoteo(post=145328:date=Apr 13 2006, 12:47 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE(Pieter Boelen @ Apr 13 2006, 12:47 PM) [snapback]145328[/snapback]</div><div class='quotemain'><!--quotec-->
BTW: Strange thing with the Dutch: DatchFlagTex is NOT referenced in rigging.ini. Not is Dutch or Holland. What the HECK??? <img src="style_emoticons/<#EMO_DIR#>/piratesing.gif" style="vertical-align:middle" emoid=":shock" border="0" alt="piratesing.gif" />
<!--QuoteEnd--></div><!--QuoteEEnd-->

When I created a flag for Nathaniel but didn't understand the idea yet, after selecting his colors I simply get Dutch flag. I suppose that if something is wrong program just assigns a zero value to a flagtex index which is equivalent to a Dutch. This way everything worked fine even though Akella programers made a mistake in spelling (they wrote "Datch" instead of "Dutch").

pirate_kk
 
<!--quoteo(post=145328:date=Apr 13 2006, 12:47 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE(Pieter Boelen @ Apr 13 2006, 12:47 PM) [snapback]145328[/snapback]</div><div class='quotemain'><!--quotec-->
Merciless Mark and me have been trying to figure out how to change some code for the flag textures. We found some code in RESOURCE\INI\rigging.ini where the flag textures are defined:
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->[FLAGS]

; TEXTURE PARAMETERS
; NK I think this may well be unused.
TextureName = flagall.tga
TextureCount = 8
EnglandPennonTex = 0
SpanishPennonTex = 0
FrenchPennonTex = 0
PiratePennonTex = 0
EnglishFlagTex = 1
SpanishFlagTex = 4
FrenchFlagTex = 2
PirateFlagTex = 5
PortugalFlagTex = 3
DatchFlagTex = 0
; KK
NathanielFlagTex = 7<!--c2--></div><!--ec2-->
We also found out that this code is referenced to by MODULES\rigging.dll. You can change the texture filename, but that isn't of much use. We want to add some new texture filename, so we can add each flag to a seperate texture file (much easier for people choosing different flagpacks). So does anybody know how to ADD code to DLL files?

BTW: Strange thing with the Dutch: DatchFlagTex is NOT referenced in rigging.ini. Not is Dutch or Holland. What the HECK??? <img src="style_emoticons/<#EMO_DIR#>/piratesing.gif" style="vertical-align:middle" emoid=":shock" border="0" alt="piratesing.gif" />
<!--QuoteEnd--></div><!--QuoteEEnd-->

it is impossible(to me) to open a dll i thought you knew that already??
cause otherwise the slib mod was already in english

dll=Dynamic Link Libary
 
dll's can sort of be opened with a hex editor, but most of it is encrypted/compiled, theres a few command lines like texture file references and such we have been able to change, but not add or remove anything or redefine functions.
 
Back
Top