Post by lgb3d on May 30, 2022 1:22:47 GMT -5
Recently I had a breakthrough.
Without a GCS menu program for Windows.. it does not give the player the ability to save or load games...
My game is somewhat lengthy and I'm trying to make it as challenging as possible. As well as entertaining as possible..but if the player does not have the ability to have longevity in the game and is forced to continue restarting from the very start of the game with nothing in the inventory who's actually going to make it that far?
I kept imagining to myself I can make a menu program, no I have never went to school for computers.. but I grew up in the right era... Young on tinkering with qbasic taught me how to code in basic... reading the source of HTML Pages taught me to code HTML... cut something out add something else run it again see what the difference is figure it out teach yourself... The gcs was much a similar education for me although it came with a manual, thank God... point being I have no expertise to write a program, but I do believe it's possible to write a program that would fill the void left in the absence of a menu program for the windows gcs version 1.3
So the other day I start thinking to myself "go.bat" is not the game it's what launches the game... but batch files can do quite a few interesting things..
So I started tinkering with it, when I make final I get a single line in go.bat but there's a process and variables that could be tinkered with... No harm no foul.
"Pnocomp f pdata c %1 %2 %3 %4 %5"
That is the way the single line reads. The "C" is somewhat to clear data, so when pnocomp runs it is fresh..
So I subtract the C... every time I play the game I start off exactly where I died with full health and all the items I was carrying wow.
So I made the batch file to read with multiple executions of pnocomp. The first time should always be from the start of the game so I leave the "C".. another two times with pause in the command prompt between executions that occur without the "C"..
This gives the player three lives like an old coin eating arcade game... no save games no checkpoints.
At that point I knew I was onto something. So I started writing a simplistic program that avoided launching pnocomp immediately..
I put a couple lines in that would ask for the players name creating it as a variable... as well used a few lines to explain to the player you get three shots each time you will start where you died with full health and all the items you were carrying after the third time you die you have to start back from the very start worth nothing... each time the player dies I would have the command prompt taunt the player, since I had the players name I can make it really personal.
I can access the date and time on the computer and make it visible in cmd... So as my script is explaining the game.. and I have the players name it was on this date at this time... that he started playing or perhaps that hus funeral was...
Then I started thinking to myself shoot I can script a couple lines they keep track of the time pnocomp is running... so each time the player loses a life it says exactly how much time it took him to die...
So I'm pretty pleased with myself so far I've given the player greater longevity which I felt was a must... but at the same time I feel like I should be brainstorming because I see a lot of potential here if I script and code things correctly...
For example if the player dies I could have a prompt that asked do you want to continue... and if the player responds it would launch pnocomp w/o the "C"..
Or perhaps there is a countdown and if the player does not respond in time it jumps back to the clear and refresh pnocomp with the "C"..
But in reality, a batch file doesn't only read or launch it can write to the computer... and I've identified there's a game State preserved when the "C" is left out of the exe.. so technically if the player pause the game and returns to the command prompt program, that could be the option of saving and preserving that and writing it as a new file that could be accessed later... AKA save and load.
Before I go that far I really need to dissect other gcs games go.bat.. I've looked a few over but I have not toyed with them yet.. the ones with gcss menu have a bit more to them which is what I think I really need to look closer at to comprehend.
If they are accessing various other programs to carry out the actions that might be my dead end, as I don't have the source code, and Kevin Stokes forewarned everyone even with these programs might be impossible to compile...
But if I could identify the way the game runs and where is that game State temporary file appears I could either make it function with my batch file as I described above or write a separate program similar to menu... But that's probably more complex then a project I'm currently capable of figuring out...
When I started to make my game a little over a decade ago, I thought to myself yes I love Doom I want to make something like Doom... But the same I wanted to make it like Zelda I used to play on the NES... A world you can explore, travel back and forth through, different events occur at locations you've already visited based upon something that occurred at the other end of the map... But you know I really loved Ghouls and ghosts on the mssters system, The parallel I suddenley see is that right now my game is three-strikes-and-you're-out although you have more hit points It's oddly reminiscent. But much better than how it was 24 hours before where you get one shot from start to end in no matter how when or where you died it's back to the very start...
Anyways, I'm going to try to shoot a quick video now that I explained everything in text to demonstrate how go.bat the batch file is currently functioning on my game
Without a GCS menu program for Windows.. it does not give the player the ability to save or load games...
My game is somewhat lengthy and I'm trying to make it as challenging as possible. As well as entertaining as possible..but if the player does not have the ability to have longevity in the game and is forced to continue restarting from the very start of the game with nothing in the inventory who's actually going to make it that far?
I kept imagining to myself I can make a menu program, no I have never went to school for computers.. but I grew up in the right era... Young on tinkering with qbasic taught me how to code in basic... reading the source of HTML Pages taught me to code HTML... cut something out add something else run it again see what the difference is figure it out teach yourself... The gcs was much a similar education for me although it came with a manual, thank God... point being I have no expertise to write a program, but I do believe it's possible to write a program that would fill the void left in the absence of a menu program for the windows gcs version 1.3
So the other day I start thinking to myself "go.bat" is not the game it's what launches the game... but batch files can do quite a few interesting things..
So I started tinkering with it, when I make final I get a single line in go.bat but there's a process and variables that could be tinkered with... No harm no foul.
"Pnocomp f pdata c %1 %2 %3 %4 %5"
That is the way the single line reads. The "C" is somewhat to clear data, so when pnocomp runs it is fresh..
So I subtract the C... every time I play the game I start off exactly where I died with full health and all the items I was carrying wow.
So I made the batch file to read with multiple executions of pnocomp. The first time should always be from the start of the game so I leave the "C".. another two times with pause in the command prompt between executions that occur without the "C"..
This gives the player three lives like an old coin eating arcade game... no save games no checkpoints.
At that point I knew I was onto something. So I started writing a simplistic program that avoided launching pnocomp immediately..
I put a couple lines in that would ask for the players name creating it as a variable... as well used a few lines to explain to the player you get three shots each time you will start where you died with full health and all the items you were carrying after the third time you die you have to start back from the very start worth nothing... each time the player dies I would have the command prompt taunt the player, since I had the players name I can make it really personal.
I can access the date and time on the computer and make it visible in cmd... So as my script is explaining the game.. and I have the players name it was on this date at this time... that he started playing or perhaps that hus funeral was...
Then I started thinking to myself shoot I can script a couple lines they keep track of the time pnocomp is running... so each time the player loses a life it says exactly how much time it took him to die...
So I'm pretty pleased with myself so far I've given the player greater longevity which I felt was a must... but at the same time I feel like I should be brainstorming because I see a lot of potential here if I script and code things correctly...
For example if the player dies I could have a prompt that asked do you want to continue... and if the player responds it would launch pnocomp w/o the "C"..
Or perhaps there is a countdown and if the player does not respond in time it jumps back to the clear and refresh pnocomp with the "C"..
But in reality, a batch file doesn't only read or launch it can write to the computer... and I've identified there's a game State preserved when the "C" is left out of the exe.. so technically if the player pause the game and returns to the command prompt program, that could be the option of saving and preserving that and writing it as a new file that could be accessed later... AKA save and load.
Before I go that far I really need to dissect other gcs games go.bat.. I've looked a few over but I have not toyed with them yet.. the ones with gcss menu have a bit more to them which is what I think I really need to look closer at to comprehend.
If they are accessing various other programs to carry out the actions that might be my dead end, as I don't have the source code, and Kevin Stokes forewarned everyone even with these programs might be impossible to compile...
But if I could identify the way the game runs and where is that game State temporary file appears I could either make it function with my batch file as I described above or write a separate program similar to menu... But that's probably more complex then a project I'm currently capable of figuring out...
When I started to make my game a little over a decade ago, I thought to myself yes I love Doom I want to make something like Doom... But the same I wanted to make it like Zelda I used to play on the NES... A world you can explore, travel back and forth through, different events occur at locations you've already visited based upon something that occurred at the other end of the map... But you know I really loved Ghouls and ghosts on the mssters system, The parallel I suddenley see is that right now my game is three-strikes-and-you're-out although you have more hit points It's oddly reminiscent. But much better than how it was 24 hours before where you get one shot from start to end in no matter how when or where you died it's back to the very start...
Anyways, I'm going to try to shoot a quick video now that I explained everything in text to demonstrate how go.bat the batch file is currently functioning on my game