Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » Visual Basic (VB 4/5/6) » Game Programming » Hex Editing or something like it.


Hex Editing or something like it.Expand / Collapse
Author
Message
Posted 10/18/2007 2:06:09 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/20/2007 12:46:49 AM
Posts: 3, Visits: 5
I'm using VB 6.0 and I'm trying to make an editor for an old playstation game. I'm using CDmage to extract files off of the CD. I can use a hex editor to edit the files, but I want to us VB to automate the process and make it more user friendly. I'm not a total newb with VB but what I'm looking to do, I might as well be. I've looked at over 100 pages here of code and programs looking for something that I can use to build on. I found one good hex editor, but it's quite complex for me and the author wrote it with almost no comments so I'm not making heads or tails of it. I'm hoping that someone can help me with some simple coding to edit in hex, I don't actually want to display the hex at all, just have it so users can select something out of a list box and have my program change the file I'm editing. I'm not sure I'm making myself clear but any help would be much appreciated.

"Tribute?!?!?! You steal men's souls and make them your slaves!!!"
--Alucard
"Perhaps, the same could be said of all religions!!!!"
--Dracula
CASTLEVANIA: SOTN
Post #23350
Posted 10/18/2007 7:34:21 AM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum God

Group: Forum Members
Last Login: Yesterday @ 7:34:31 PM
Posts: 1,465, Visits: 3,404
Welcome to A1vbcode Oblivion_Of_Pain.

What file type are you trying to edit?

I think you best bet is to do a search on PSC

Keith

http://www.martin2k.co.uk/forums/

I've been programming with VB for 12 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
Post #23355
Posted 10/18/2007 6:55:57 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/20/2007 12:46:49 AM
Posts: 3, Visits: 5
One file extension is .21, there's a .mes, and a .ent, which all seem to be proprietary to the game. But, they're alot like .dat that some older games use. We know the values we want to edit if you open those files in a hex editor.

"Tribute?!?!?! You steal men's souls and make them your slaves!!!"
--Alucard
"Perhaps, the same could be said of all religions!!!!"
--Dracula
CASTLEVANIA: SOTN
Post #23358
Posted 10/19/2007 7:15:42 AM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum God

Group: Forum Members
Last Login: Yesterday @ 7:34:31 PM
Posts: 1,465, Visits: 3,404
The file extension doesn't make any difference, its the type of file format we need to know. Is it pure Ascii or Binary?

Keith

http://www.martin2k.co.uk/forums/

I've been programming with VB for 12 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
Post #23366
Posted 10/20/2007 12:51:12 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 10/20/2007 12:46:49 AM
Posts: 3, Visits: 5
Binary.

On related note, is there a way to work with string variables the same way as text boxes using things like selstart, sellength and seltext? Because, if I can load the files I want as either hex or even a long string of binary, I think that would be the easiest way for me to edit it the way I want to.

"Tribute?!?!?! You steal men's souls and make them your slaves!!!"
--Alucard
"Perhaps, the same could be said of all religions!!!!"
--Dracula
CASTLEVANIA: SOTN
Post #23377
Posted 10/20/2007 3:12:33 PM


Forum God

Forum GodForum GodForum GodForum GodForum GodForum GodForum GodForum God

Group: Forum Members
Last Login: Yesterday @ 7:34:31 PM
Posts: 1,465, Visits: 3,404
Oblivion_Of_Pain (10/20/2007)

On related note, is there a way to work with string variables the same way as text boxes using things like selstart, sellength and seltext?

Yes you you can read the file using the Line Input function.

Keith

http://www.martin2k.co.uk/forums/

I've been programming with VB for 12 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
Post #23384
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Brian, Peter

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 2:33am