Jump to content
NHL'94 Forums

Editing NHL94 in C++


Red

Recommended Posts

I'm working on a C++ program to manipulate NHL94. I'm having trouble reading the NHL94.bin file. Right now I am reading the file to a string (eventually I will read it to a vector array, but that is down the road), but the program stops reading when the pointer reaches a '1A' value in the file. Is there a workaround for this, or is there a better way to accomplish what I'm trying to do?

Link to comment
Share on other sites

I'm working on a C++ program to manipulate NHL94. I'm having trouble reading the NHL94.bin file. Right now I am reading the file to a string (eventually I will read it to a vector array, but that is down the road), but the program stops reading when the pointer reaches a '1A' value in the file. Is there a workaround for this, or is there a better way to accomplish what I'm trying to do?

You really should create a dynamic array of bytes and not work with strings to store the ROM. Like Visual Basic (used for NOSE), you should be able to get the size of the file, resize the byte array to match, and the load the entire file into the array with only a handful of commands. Can't remember the exact syntax you need to use as I haven't used C++ in years unfortunately.

Exactly what elements of 94 are you trying to manipulate.... ???

Link to comment
Share on other sites

Thanks wboy. I'll have to try it with a dynamic array. I haven't used dynamic arrays yet (I'm kind of a programming noob).

The program will only manipulate player names and attributes, & will also read (but not alter) team names.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Who's Online   0 Members, 0 Anonymous, 86 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...