How to recompile Adoxa's dll src
-
Yes, I mean that, the dll file is use the “Simplified Chinese” to make and work fine in my Traditional Chinese Windows system.
So I want you to test in your Simplified Chinese Windows system to make sure what I guess, right now I know the answer.
The answer is:
If you use the different language words to change the rc file and compile it on your Windows system(like me use the Simplified Chinese words to change the English words in my Traditional Chinese Windows system, and if you want to do same thing, you need to use the Traditional Chinese words to change the English words in your Simplified Chinese Windows system), you will get a dll can work fine in your language of Windows system, but if the dll file use in the same language of Windows system(like I make of Simplified Chinese word dll use in your Simplified Chinese Windows system), then it will be issue.
So that’s very strange, isn’t it?
Let me use the Chinese to explain it clearly(sorry for my poor English):
我当然知道这个档案的内容是简体字,我的意思是,如果我使用简体字在我的繁体Windows系统去编译的话,可以在我的繁体系统下的游戏环境运作正常(这也就是我附件放上这个DLL档案的原因,我想让你测试在你的简体Windows下是否也能正常)但是如果我更换为繁体字去编译的话,即便所有步骤都一样,结果就是不能在游戏里面正常运作,它只会出现一次,然后后面就不运作了。
所以我担心,如果我使用了这个重新编译的DLL档案在我的模组中,我怕可能只有在繁体Windows环境下才会正常,结果经过你的测试以后,证明我的假设是正确的,这样编译出来的档案只能使用在繁体系统环境下。
让我纳闷的是,这么简单的一个语言置换,怎么就弄了半天还是解决不了?VB我都用过,从来没有出现这种问题,怎么换了个VC++就变成如此了?
-
Yes, it’s so weird. Debug like this is exhusting.
But there is something also weird is, after I compile with Unicoded [c]zone.rc[/c], when I open up the resulting DLL with ResHacker, it still display normally – I was hoping to see the miscode.
I think it’s either because ResHacker did code convert automatically when I open the file so I can read it, Or it’s still ANSI.
Could be a fail guess though.
I have no idea what’s going on here
-
@NeXoSe: dllimport means this function will be found in another DLL; dllexport means make this function available to others.
I tried the above DLL on my English system and that worked fine. Have you tried changing system (or maybe just using a tradelane) and seeing if that message shows up, and then try the zone again? (If you’re using Console, just do [c]s .[/c].) If that works, then perhaps Zone still thinks a message is displayed and so does not display another one until something else resets it. Still, I don’t know how that would occur. If it doesn’t work, I guess I could add some log messages to the spew (unless you want to delve into low-level debugging, as well…).
-
adoxa wrote:
@NeXoSe: dllimport means this function will be found in another DLL; dllexport means make this function available to others.Sorry for delay.
I tested again using above DLL, and I can conform that:
1, When enter a new field, the Entering message will show up, but no Leaving message.
2, Re-enter that same field, the Entering message will not show up.
3, Enter another field, the Entering message for the new entered field show up, but again, I leave without the Leaving message.
4, I also tried the Jumpgate (Cause map reloading?), same thing happens.Here is the record:
https://www.youtube.com/embed/f3yPkogmt5w
Or https://www.youtube.com/watch?v=f3yPkogmt5w&feature=youtu.be
(Sorry, litte blurring, my camera not forced, and I failed notice that…)
(And I also had to test my plugin at same time to save some time…So …)BTW: Then, why I change [c]dllimport[/c] to [c]dllexport[/c] and the DLL still working as I (seems) reversed the purpose completely? OK, I think it’s not good for waste your time and energy to answer my newbie question, I better just Google it myself to fill the empty hold of my knowledge.
Thank you!
-
I’ve attached a new [c]Zone.cpp[/c] that logs (to [c]EXE\zone.log[/c]) when you enter/leave a zone - that should at least tell if it’s a detection issue or just the display.
Regarding dllimport/export, I’m a little unsure myself. I have another project that just uses dllexport and it imports fine, too.
-
adoxa wrote:
I’ve attached a new [c]Zone.cpp[/c] that logs (to [c]EXE\zone.log[/c]) when you enter/leave a zone - that should at least tell if it’s a detection issue or just the display.OK, There is the result:
1, I downloaded the modified Zone.cpp,
2, Place it with other file and compile with my modified makefile I pasted above (It should not effect the test I guess),
3, Enter the game with compiled DLL (English Res), works good still,
4, Exit game and edit the DLL with Res copied from JONG’s Zone.dll (with ResHacker, copy and paste),
5, Re-enter the game (MP mode), travel between Detroit field(Start from) and Jersey field couple of times, problem still (only enter message shown). Here is the zone.log:Entered 3003235657 Entered 3003235657 Entered 3003235657 Entered 3003235657 Entered 3003235657
If I use the English res, it will be:
Entered 3003235657 Left 3003235657 Entered 3003235657 Left 3003235657 Entered 3003235657 Left 3003235657
-
Ah, got it. I’m guessing [c]LoadString[/c] fails because it wants a double-byte character which I don’t provide room for, which in turn showed a problem with the [c]show_left[/c] code. I’ve expanded the [c]test[/c] array to four bytes and fixed [c]show_left[/c] - if it still doesn’t work, initialise [c]show_left = true[/c] and try again; if that works, something’s still going wrong with [c]LoadString[/c].
-
Ok, that’s what I test:
Use the Traditional Chinese of text to change the Zone-fix.zip of cpp English text, then recompile and use it in my Simplified Chinese Windows system, its work fine like before Adoxe make.
Not yet to test in my Traditional Chinese Windows system, I’ll report later.
Edit:
Ok, finish the test, in my Traditional Chinese Windows system work fine as above.
Is it a final version of zone dll ?
-
if you want to change zone.dll text to your language you dont need compile and c++ programs. just find a hex edit program and open zone.dll find this lines which shown on the screenshot im attached. Iam using hexplorer program for this.
Do not forget the spaces of letters are should be 00 on left side hex codes if you want to show break between two letters break hex code should be 20 not 00.
0D is char number of enter zone
0A i left zone char name0D means 13 char
0A means 10 charif you want inrease or decrease letter number increase or decrease 0D and 0A(ex for 20 char change 0D to 14 this is about hex lang) and if you want to insert new char use insert button on keyboard.