* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: Starvault - Unfinished but here for posterity.  (Read 1518 times)

0 Members and 1 Guest are viewing this topic.

Offline iconmaster

  • New User
  • Join Date: Jan 2015
  • Location:
  • Posts: 17
  • Post Rating Ratio: +0/-0
  • The Crazy HP Prime Guy
    • iconmaster5326
    • View Profile
  • Gender: Male
Starvault - Unfinished but here for posterity.
« on: January 21, 2015, 11:03:16 pm »
After Tetris, I want on to start another game. It was called Starvault, and it was going to be a short sci-fi roguelike sort of game.

I had the bright idea to separate the game into multiple HPPRGM files for my programing convenience. Well, as it turns out, this is a very bad idea. I eventually made a cyclic dependency in the code. As it turns out, if one of the dependants has a syntax error, none of the other dependants will ever compile again. As a result, this code can never run again, as one can never fix the bug that causes every check to fail. This proved to be the end of Starvault development.

I decided Source would be a better use of my time.

Anyways, the program does some cool graphical effects, so I suggest you check out the source code to see it. Maybe you can learn something from it?? I've attached the source code and assets.


I really wish I had made screenshots when it was working. Oh well.



Online DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17822
  • Post Rating Ratio: +89/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: Starvault - Unfinished but here for posterity.
« Reply #1 on: January 22, 2015, 03:55:26 am »
Hmm strange that the game would stop compiling again once a sub-program gets an error. I'll think twice next time about using sub-programs then. D: Do you think there would be a way to make that game compilable again in the future, such as merging every sub-program into one file or copying the code into brand new ones?

THis also sounds like it is a bug that should be reported to Tim Wessman.

EDIT: Are you sure that the HP Prime supports the SV_DRAWGAME.DRAWBACK()? Most syntax errors seems to be at lines like this.
« Last Edit: January 22, 2015, 04:00:00 am by DJ Omnimaga »
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Offline iconmaster

  • New User
  • Join Date: Jan 2015
  • Location:
  • Posts: 17
  • Post Rating Ratio: +0/-0
  • The Crazy HP Prime Guy
    • iconmaster5326
    • View Profile
  • Gender: Male
Re: Starvault - Unfinished but here for posterity.
« Reply #2 on: January 22, 2015, 02:04:32 pm »
I got it working again by merging everything into one file. So, feel free to check out the attached file, and also these screenshots:


Online DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17822
  • Post Rating Ratio: +89/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: Starvault - Unfinished but here for posterity.
« Reply #3 on: January 22, 2015, 02:11:21 pm »
Awesome to hear. :D By the way, just a question: Since the HP Prime has issues keeping highscores and saves if you accidentally recompile your program, could using the program launcher trick (having a very small program launch the bigger program as sub-program) result into the compiling issues you got with this game?


This looks quite nice by the way. I'll need to give this a try soon :)
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Offline iconmaster

  • New User
  • Join Date: Jan 2015
  • Location:
  • Posts: 17
  • Post Rating Ratio: +0/-0
  • The Crazy HP Prime Guy
    • iconmaster5326
    • View Profile
  • Gender: Male
Re: Starvault - Unfinished but here for posterity.
« Reply #4 on: January 22, 2015, 02:21:34 pm »
Awesome to hear. :D By the way, just a question: Since the HP Prime has issues keeping highscores and saves if you accidentally recompile your program, could using the program launcher trick (having a very small program launch the bigger program as sub-program) result into the compiling issues you got with this game?

This looks quite nice by the way. I'll need to give this a try soon :)

I don't think SV_DATA caused the error, as I still use the SV_DATA trick in the merged version.

And thanks a bunch!

Online DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17822
  • Post Rating Ratio: +89/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: Starvault - Unfinished but here for posterity.
« Reply #5 on: January 22, 2015, 05:45:56 pm »
Ok good to hear ^^
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games