Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Using Mapkit for String Editing
Using Mapkit for String Editing
This topic is locked. You can no longer write replies here.
Jan 1 2010, 9:23 pm
By: Zhuinden  

Jan 1 2010, 9:23 pm Zhuinden Post #1



There is a program called MapKit on Maplantis which can seperate a map's CHK into sections, and manually access the String section, and you can edit it right. But apparently the "CompileMap" that would recompile the map from its sections doesn't want to work for me.

Does anyone know how to use it so it would recompile the map, or does anyone know of a different tool that would recompile the map from its sections?



None.

Jan 1 2010, 9:29 pm ImagoDeo Post #2



Wouldn't it be simpler to use SCMD's string editing tool? Or are you using a mac or something, and therefore can't do that?



None.

Jan 1 2010, 9:32 pm Zhuinden Post #3



SCMDraft? Can't use that. I must decompile the map into pieces and edit the string section individually, because the map itself cannot be neither unprotected nor opened by SCMDraft.



None.

Jan 1 2010, 9:39 pm Apos Post #4

I order you to forgive yourself!

Can you post the map?




Jan 1 2010, 9:50 pm rockz Post #5

ᴄʜᴇᴇsᴇ ɪᴛ!

mapkit just separates scenario.chk into sections. I can't get compile map to work either. Just manually put in the fixed string section back into the chk.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Jan 1 2010, 9:51 pm Zhuinden Post #6



Uh... The question is, how do I manually put the fixed string section back into the chk? :P

In case people wanna know, I have found a program that is capable of reversing CMP Debugger's protection, but only to 1.70 state, and that cannot be unprotected too well. But it keeps the map in tact, therefore the STR section can be modified to translate korean maps. I'm sure there is a way to fix this issue with MPQ Repair (by Special) but I couldn't get it to work, probably needs a korean windows XP like CMP Debugger 1.70.

Post has been edited 1 time(s), last time on Jan 1 2010, 10:01 pm by Zhuinden.



None.

Jan 1 2010, 10:05 pm rockz Post #7

ᴄʜᴇᴇsᴇ ɪᴛ!

find "STR" in both scenario.chk and the string section, then copy/paste in a hex editor back into the chk. If you insert (which you should) make sure you delete the old string section up until whatever comes next in the map. See scenario.chk format for more details on all that in the wiki.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Jan 1 2010, 10:46 pm Zhuinden Post #8



The original map file is the same as the Scenario.chk, right? Except the map can also include external files like WAVs next to the CHK, and so it is a part of it.



None.

Jan 2 2010, 12:15 am rockz Post #9

ᴄʜᴇᴇsᴇ ɪᴛ!

scenario.chk is a raw format. mapname.scx is a mpq archive. scenario.chk is a file inside of mapname.scx, alongside any wavs and external files. The chk is the map itself. Any wav files referenced in there reference themselves through strings in the chk, which point to the wav file in the mpq archive.

open the scx in winmpq to extract scenario.chk.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Jan 2 2010, 1:59 am Zhuinden Post #10



Ehhh... I extracted it, put in the new STR section with Notepad, and afterwards it says it's invalid. I don't get it why. Any ideas?



None.

Jan 2 2010, 2:31 am LegacyWeapon Post #11



You can't use Notepad. See: hex editor



None.

Jan 2 2010, 8:03 am rockz Post #12

ᴄʜᴇᴇsᴇ ɪᴛ!

I use notepad++ with the hex editor plugin.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Jan 2 2010, 11:57 am Zhuinden Post #13



Aaaaand done! Thanks everyone for your help, now a half-english version of TWOE II is complete!!! :D I used Hex Workshop to do it and this way now it works flawlessly.
Truly I am in your debt.

Attachments:
twoe_II_[nv9c]e1.scx
Hits: 0 Size: 440.21kb



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:05 am]
jjf28 -- o and it's an anti-hack update, coo
[03:05 am]
jjf28 -- o, updated like half a day ago, but idk
[02:35 am]
RdeRenato -- scmdraft not working since last SCR update?
[02:22 am]
zsnakezz -- yeah
[01:13 am]
RdeRenato -- xd
[12:12 am]
lil-Inferno -- KrayZee
KrayZee shouted: NudeRaider Is there some sort of SEN alumni?
ya it's here http://www.staredit.net/shoutbox/
[10:30 pm]
KrayZee -- NudeRaider
NudeRaider shouted: MTiger156 ^^ On the Internet "over a decade ago" counts as ancient imo
Is there some sort of SEN alumni?
[04:52 pm]
NudeRaider -- MTiger156
MTiger156 shouted: "Ancient SEN"
^^ On the Internet "over a decade ago" counts as ancient imo
[04:07 pm]
RdeRenato -- EUD can be useful but I need the "save game" of SCR. Thanks for the tutorial, it seems to work. The idea of using AI to order can also be useful to me.
[03:11 pm]
MTiger156 -- :omfg:
Please log in to shout.


Members Online: krismartin12, Ultraviolet, jarfan375032, Roy, Zycorax, 1camilae3491fB9, equvikir, Starmods107