Staredit Network

Staredit Network -> Modding Assistance -> help here
Report, edit, etc...Posted by tidus on 2005-11-24 at 23:33:06
i cannot figure out how to edit cheats
Report, edit, etc...Posted by Rainor on 2005-11-25 at 07:42:55
That is easy to answer,you cant it is hardcoded,sorry.But you can change what it says when you cheat editing the network.tbl with Tblpad.
Report, edit, etc...Posted by Staredit.Net Essence on 2005-11-25 at 08:57:53
QUOTE(Rainor @ Nov 25 2005, 10:42 PM)
That is easy to answer,you cant it is hardcoded,sorry.But you can change what it says when you cheat editing the network.tbl with Tblpad.
[right][snapback]364273[/snapback][/right]

owned tongue.gif
Report, edit, etc...Posted by DiscipleOfAdun on 2005-11-25 at 09:28:49
Major pain in the butt to try, isn't going to happen. There stored using in a hash table near the end of the exe. (Hey, at least I know where and how they are hardcoded, thats a start...)

[SIZE=2] However, I assume that the hashing algorithim might be the same as the one used for the MPQ hash table... But, that's a one way hash, so... too bad.
Report, edit, etc...Posted by BSTRhino on 2005-11-27 at 21:30:55
Could you just replace the hash with a new one? The code for the hash is on campaigncreations.org. But it's for a hex editor/programmer person only, so it's probably too much to teach you how to do it tidus, as there's a lot of stuff to work out and learn.
Report, edit, etc...Posted by Oo.Insane.oO on 2005-11-27 at 21:38:18
How would you just replace the hash on the game without recoding the hole thing that is too much work and probally isnt even worth it
Report, edit, etc...Posted by BSTRhino on 2005-11-27 at 22:03:39
Let me explain.

This is a cheat: power overwhelming

If we put "power overwhelming" through a hashing function, we get what's called a hash from it. For example, let's act as if this is the hash for "power overwhelming": 43712895. In truth, a hash is binary code and would probably be expressed in hexadecimal, but let's just imagine it's some number.

Hashing functions are consistent, which means they always return the same hash for any input. So if I put "power overwhelming" into my hypothetical hashing function again, I would get 43712895 a second time. However, if I put something else such as "Yoshi da Sniper is cool" into the hashing function, I'd get something else, say for example, I might get 95832756. This way, when you type a message in, StarCraft can check whether it's the "power overwhelming" cheat by hashing your message (putting it through the hashing function) and seeing if the hash is equal to 43712895. If it's not, then you didn't type in "power overwhelming". So when you type "Yoshi da Sniper is cool" it'll come out with the hash 95832756, which is not the same as 43712895, so it knows you didn't type in the "power overwhelming" cheat.

So, what would happen if we could go into the EXE, find out where the 43712895 hash for "power overwhelming" was, and then change it to 95832756? That's right, next time you would open StarCraft, you'd type in "Yoshi da Sniper is cool" and voila, you would have activated StarCraft's invincibility cheat. My argument here is that this is going to be really easy, because:
1. We know where the hash for "power overwhelming" is stored thanks to DiscipleOfAdun (although it wouldn't be that hard to find either way)
2. We also know what to change the value to, because if we speculate that the hashing function for the MPQ posted on campaignscreations.org is the same hashing function used for cheats, then we can easily find out that "Yoshi da Sniper is cool" has a hash of 95832756 (or whatever it is for real.)
3. Hashes are always of a fixed length. If you've had hex editing experience, you'll know that that is important, because we don't have to change any offsets to perform this change.

So all we'd need to do is get out a hex editor, go to the location where 43712895 is stored, and change it to 95832756. (You know by now that those numbers aren't real, don't you?) Then the cheat would be changed. It looks to me like it is really easy for someone who has programming (for the hash code) and hex editing experience.
Report, edit, etc...Posted by BroodKiller on 2005-11-28 at 13:28:24
Thank you for your attention, class dismissed.....8)
Report, edit, etc...Posted by Oo.Insane.oO on 2005-11-28 at 20:39:15
I get what your saying but I dont think that there's a hex editing tool for starcraft tho (There probibally is) but even so it would be too much work I think
Report, edit, etc...Posted by Rikimbo on 2005-11-28 at 22:06:28
QUOTE(Insane @ Nov 28 2005, 08:39 PM)
I get what your saying but I dont think that there's a hex editing tool for starcraft tho (There probibally is) but even so it would be too much work I think
[right][snapback]366982[/snapback][/right]


Hex editing wouldn't be a specific program to Starcraft. You can go and mess with hex offsets in any program if you like, with a hex editor.

I had done some rudimentry hex manipulation/editing in Starcraft years ago when I'd been all into modding and such... but I forget what I had gotten done... It's realy ugly it is. smile.gif
Report, edit, etc...Posted by tidus on 2005-11-29 at 22:51:17
i no how to use hex

any ways thx for the code editing thingy migy

cause i really no how to edit other things but cheat so

i envy u again bst
Report, edit, etc...Posted by KrAzY on 2005-11-30 at 02:19:45
You can't edit cheats because I asked this before.
Report, edit, etc...Posted by Voyager7456(MM) on 2005-11-30 at 06:43:41
Look above you. You can edit them, it just requires hex editing.
Report, edit, etc...Posted by DiscipleOfAdun on 2005-12-01 at 09:38:14
Except that the hashing algorithm isn't the same as the MPQ one. The hash table has 2 different hashes for the same string. If you can find where it hashes the string, like I did, you can imput any string, and get both hashes for it. Then you just need to hex edit the table(If you can find it, took me an hour, and I was on 1.12b, where I know where almost everything is....)
Report, edit, etc...Posted by KrAzY on 2005-12-04 at 13:42:14
QUOTE(Voyager7456(MM) @ Nov 30 2005, 03:43 AM)
Look above you. You can edit them, it just requires hex editing.
[right][snapback]368128[/snapback][/right]


Ok, I just noticed.
Next Page (1)