Welcome, Guest. Please login or register.
May 23, 2012, 09:19:01 AM

Login with username, password and session length
Search:     Advanced search
If you see anyone spamming please PM me or email reportspambot@game.geek.nz to let me know - chiQ
109672 Posts in 6137 Topics by 2510 Members
Latest Member: vivahazelbaker
* Home Help Search Calendar Login Register
+  ROME.RO GameTalk
|-+  General
| |-+  Open Discussion (Moderators: ZZT-X, Rizimar)
| | |-+  Anyone Good At Programming and Some basic Hex Editing?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Print
Author Topic: Anyone Good At Programming and Some basic Hex Editing?  (Read 2776 times)
Compwhiz128
GameTalk Friend
**
Offline Offline

Posts: 124


« on: October 26, 2008, 05:12:55 PM »

Back from the dead for a request...

If so, then I need your help. This game that ive been obsessed with since a kid called Microman.

Ive played it over and over and over again...

Ive recently learned how to edit the levels using a hex editor.

This method, however, is frusterating and can pernamently damage the level file.

Heres how the levels are stored in the game.

In text its read as this gibberish when reffering to where the file is located in the hex editor

Start Room
MO

But here is what its like when displayed in HEX




The stuff thats circled crudely when switched around is where the level data is located




Like so...


That is where all the tile data is located...

Below that is the non static object data




Like so....




Above is a crudely composed image of where how the hex numbers show on the level




So if anyone would know how to write a program that eases the use of modifying the levels in this game, that'd be great!

Thank you all!
Logged

Rizimar
Global Moderator
Romero's Best Friend
*****
Offline Offline

Posts: 5847


WWW
« Reply #1 on: October 26, 2008, 08:26:04 PM »

Cool that you figured out how to edit the levels with hex. If possible, you could try writing a program in C or some other language that would modify the executable's source. It would take some time, but if you feel it's worth it, it would be an option worth considering
Logged

Bad Sector
Big Fat Code Bastard
Monsterator
Post Monkey
*****
Offline Offline

Posts: 1495


Braaaiins!

WWW
« Reply #2 on: October 27, 2008, 01:41:45 PM »

You might want to write a plugin for my tilemap editor here that reads and writes the file :-).
Logged

CRC failed
Compwhiz128
GameTalk Friend
**
Offline Offline

Posts: 124


« Reply #3 on: October 27, 2008, 03:15:14 PM »

Well the question I have now is...How?

Its a nifty program and this would work, I just need to know how I would do such a thing.
Logged

Rizimar
Global Moderator
Romero's Best Friend
*****
Offline Offline

Posts: 5847


WWW
« Reply #4 on: October 27, 2008, 04:37:44 PM »

You could write a program that opens up the game's executable, searches for the "Start Room" string, and then reads all of the characters following, storing those characters in an array, then have the program draw the level where you can edit it
Logged

Compwhiz128
GameTalk Friend
**
Offline Offline

Posts: 124


« Reply #5 on: October 27, 2008, 06:19:53 PM »

You could write a program that opens up the game's executable, searches for the "Start Room" string, and then reads all of the characters following, storing those characters in an array, then have the program draw the level where you can edit it

The Levels are stored in the .RMP file

Logged

Rizimar
Global Moderator
Romero's Best Friend
*****
Offline Offline

Posts: 5847


WWW
« Reply #6 on: October 27, 2008, 07:55:03 PM »

Ah. Did you find out how the enemies and items are stored?

I found a shareware copy of the game online. Apparently, the guy who programmed it was one of the original founders of Monolith!
Logged

Compwhiz128
GameTalk Friend
**
Offline Offline

Posts: 124


« Reply #7 on: October 28, 2008, 05:17:02 PM »

Ah. Did you find out how the enemies and items are stored?

I found a shareware copy of the game online. Apparently, the guy who programmed it was one of the original founders of Monolith!

Items and enimies are stored right below the tile code.

The hex number at the beggining is the corrdinates, and the "01" tells it to be placed on the right half of the screen



Romero even knows who Goble is

Session Start (compwhiz128:txgameguy): Sun Jan 20 01:56:31 2008
[01:57] compwhiz128: Do you know this person by the name of Brian Goble?
[01:57] txgameguy: yep :)
[01:57] txgameguy: known of brian since 1989
[01:57] compwhiz128: Zomg how?
[01:57] txgameguy: when i was working at Softdisk he submitted a game for publication called Alien Planet ........was pretty good
[01:58] compwhiz128: Thats the dude who made Microman!
[01:59] compwhiz128: Made back when not much was done in ways of flicker free animation under windows 3.1
Session Close (txgameguy): Sun Jan 20 02:02:44 2008
« Last Edit: October 28, 2008, 05:18:59 PM by Compwhiz128 » Logged

elias3c
GameTalk Core Pal
***
Offline Offline

Posts: 378


The Programmer - Composer

« Reply #8 on: October 29, 2008, 04:42:21 PM »

Should this be moved to the Computer Programming section? Hm. I don't know my way around Hex at all and I have been programming since 7th grade... sigh.
Logged

Quote from: Bruce Lee
"If you put water into a cup, it becomes the cup. You put water into a bottle and it becomes the bottle. You put it in a teapot it becomes the teapot. Now, water can flow or it can crash. Be water my friend."
Rizimar
Global Moderator
Romero's Best Friend
*****
Offline Offline

Posts: 5847


WWW
« Reply #9 on: October 29, 2008, 11:06:41 PM »

Should this be moved to the Computer Programming section? Hm. I don't know my way around Hex at all and I have been programming since 7th grade... sigh.

Hex really isn't tough to figure out. And if Compwhiz or someone were to write a level editor, they wouldn't even have to use it if they didn't want to.
Logged

elias3c
GameTalk Core Pal
***
Offline Offline

Posts: 378


The Programmer - Composer

« Reply #10 on: October 30, 2008, 06:13:05 PM »

Should this be moved to the Computer Programming section? Hm. I don't know my way around Hex at all and I have been programming since 7th grade... sigh.

Hex really isn't tough to figure out. And if Compwhiz or someone were to write a level editor, they wouldn't even have to use it if they didn't want to.
Yeah I made my own scripting language for maps in map files, which is then encrypted. It has an almost batch file feel to it. It has functions like wall, door, floor, etc etc. I will soon to be updating it for my game, which I am still working on. :D With the tests of my game, I am actually using raw code to create the map, so it can't really be changed unless i do some sort of thing with arrays which is almost pointless, when I can make a scripting language, so then I can include level creators for my game. :D Anybody else create a map file system and/or a level editor? (2d)
Logged

Quote from: Bruce Lee
"If you put water into a cup, it becomes the cup. You put water into a bottle and it becomes the bottle. You put it in a teapot it becomes the teapot. Now, water can flow or it can crash. Be water my friend."
Bad Sector
Big Fat Code Bastard
Monsterator
Post Monkey
*****
Offline Offline

Posts: 1495


Braaaiins!

WWW
« Reply #11 on: October 31, 2008, 05:45:07 AM »

Me, i already mentioned it at this very thread :-P
Logged

CRC failed
elias3c
GameTalk Core Pal
***
Offline Offline

Posts: 378


The Programmer - Composer

« Reply #12 on: October 31, 2008, 07:15:32 PM »

Me, i already mentioned it at this very thread :-P
Lol, you can quote me, I said anybody else lol. I will check yours out, bit I got to see what file structure your using.
Logged

Quote from: Bruce Lee
"If you put water into a cup, it becomes the cup. You put water into a bottle and it becomes the bottle. You put it in a teapot it becomes the teapot. Now, water can flow or it can crash. Be water my friend."
Bad Sector
Big Fat Code Bastard
Monsterator
Post Monkey
*****
Offline Offline

Posts: 1495


Braaaiins!

WWW
« Reply #13 on: November 01, 2008, 07:49:45 AM »

Ah i thought with "anybody else" you meant beside you not me :-P. A file is shown in the references topic, but here it is.
Logged

CRC failed
elias3c
GameTalk Core Pal
***
Offline Offline

Posts: 378


The Programmer - Composer

« Reply #14 on: November 01, 2008, 10:29:57 AM »

Ah i thought with "anybody else" you meant beside you not me :-P. A file is shown in the references topic, but here it is.
Wow, very nice, clean, easy to read structure. :D
Logged

Quote from: Bruce Lee
"If you put water into a cup, it becomes the cup. You put water into a bottle and it becomes the bottle. You put it in a teapot it becomes the teapot. Now, water can flow or it can crash. Be water my friend."
Pages: [1] 2 Go Up Print 
« previous next »
 

Powered by MySQL Powered by PHP Powered by SMF 2.0 Beta 4 | SMF © 2006–2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!