[SOLVED] How to load HEX files from gb programs?

Développement

MicroGames

il y a 7 ans

Yeah,

I know that the topic's name is somewhat confusimg, but I'll try to explain what I mean.

So I have an idea for a pokemon like game for the gamebuino (GBMONSTERS) however I am almoust shure that I will ran out of space for the game. So I have an idea to publish the game on two hex files! How? Well there will be a gate that once you went though you won't be able to come back. (Like MS Anna in Pokemon Red)  So that you will load the first hex file  (part 1 of the game) and choose continue. The game will check how far you went though in the game. If you was still in range of that world in the first hex file than You will go straight  to the world. However If you will be pass the range of the first file the game will load the second file with the rest of the game. :D


PROGRAMING PART

So all I want to ask is : How to flash a hex file with a specyfic name from the sd card?

I looked it up in the loader's code but didn't find my anwser. If someone knows the anwser than I will be happy to hear it.


MicroGames. 

Sorunome

NEW il y a 7 ans

You are talking about the Gamebuino Classic, right?

I don't think it is mentioned in the reference, but you can just do:

load_game("SOMEFILE.HEX"); // will load that hex file

MicroGames

il y a 7 ans

Thanks

STUDIOCRAFTapps

il y a 7 ans

You can split a game troughout multiple file? Are they able to share data like health and weapon?

MicroGames

NEW il y a 7 ans

Sorunome Sorunome

Thanks

STUDIOCRAFTapps

NEW il y a 7 ans

Sorunome Sorunome

You can split a game troughout multiple file? Are they able to share data like health and weapon?

MicroGames

il y a 7 ans

If there is a one save file than the anwser is yes. (That is the case)

Sorunome

il y a 7 ans

With the gamebuino classic the easiest way to go about would be to share EEPROM.

The META doesn't have EEPROM, however the savefile API should make sharing data a piece of cake.

MicroGames

NEW il y a 7 ans

STUDIOCRAFTapps STUDIOCRAFTapps

If there is a one save file than the anwser is yes. (That is the case)

Sorunome

NEW il y a 7 ans

STUDIOCRAFTapps STUDIOCRAFTapps

With the gamebuino classic the easiest way to go about would be to share EEPROM.

The META doesn't have EEPROM, however the savefile API should make sharing data a piece of cake.

MicroGames

NEW il y a 7 ans

Sorunome

il y a 7 ans

That is for the library of the META :)

Sorunome

NEW il y a 7 ans

MicroGames MicroGames

That is for the library of the META :)

MicroGames

il y a 7 ans

O_o .... 

I will figure something out. And if that won’t work that there will be just passwords contaning data about the game.

MicroGames

NEW il y a 7 ans

Sorunome Sorunome

O_o .... 

I will figure something out. And if that won’t work that there will be just passwords contaning data about the game.

Sorunome

NEW il y a 7 ans

On the Gamebuino Classic you can use EEPROM to store stuff http://legacy.gamebuino.com/wiki/index.php?title=Memory

MicroGames

il y a 7 ans

Than what is that .SAV file? Many game son my gamebuino's SD card have it! (And they all save data)

MicroGames

NEW il y a 7 ans

Sorunome Sorunome

Than what is that .SAV file? Many game son my gamebuino's SD card have it! (And they all save data)

Sorunome

il y a 7 ans

that is what the loader automatically generates from the EEPROM when quitting to it and then loads too EEPROM when loading a game, so that you, as a programmer, can just use EEPROM and don't have to worry about other games over-writing it!

Sorunome

NEW il y a 7 ans

MicroGames MicroGames

that is what the loader automatically generates from the EEPROM when quitting to it and then loads too EEPROM when loading a game, so that you, as a programmer, can just use EEPROM and don't have to worry about other games over-writing it!

MicroGames

il y a 7 ans

OK,

That’s what made me NOT include the saving function in EPIC MINI GAMES and Planet X (overwriting other games) but If thats NOT a problem than I’ll use it! Thanks for help

MicroGames

NEW il y a 7 ans

Sorunome Sorunome

OK,

That’s what made me NOT include the saving function in EPIC MINI GAMES and Planet X (overwriting other games) but If thats NOT a problem than I’ll use it! Thanks for help

wuuff

il y a 7 ans

Also, the page on the legacy wiki that @Sorunome linked has additional information. Note the last section for details on how the .SAV is generated.

http://legacy.gamebuino.com/wiki/index.php?title=Memory

wuuff

NEW il y a 7 ans

MicroGames MicroGames

Also, the page on the legacy wiki that @Sorunome linked has additional information. Note the last section for details on how the .SAV is generated.

http://legacy.gamebuino.com/wiki/index.php?title=Memory

MicroGames

NEW il y a 7 ans

Guys, just to let you know the GBMonsters will be delayed.