|
Post by johnno56 on Mar 11, 2020 22:35:45 GMT -6
TBird suggested a new thread to pool ideas for games and potential cooperation in creating games.
If you have any suggestions, no mater how 'out of the box' they may seem, let's put our collective heads together and show people what RC can do...
The door is open...
|
|
|
Post by tbird on Mar 12, 2020 13:34:48 GMT -6
I am going to put together an Asteroids skeleton program tonight, and post it here then everyone can jump in and hammer it out.....unless asteroids is somehow not well received lol, then it will be good practice 😁
|
|
|
Post by johnno56 on Mar 12, 2020 14:27:09 GMT -6
Well received or not... I for one could use the practice...
Cool...
|
|
|
Post by johnno56 on Mar 12, 2020 20:02:28 GMT -6
Just a quick note: If anyone needs "space" backgrounds, let me know, and I'll dust off Gimp. Types: Plain stars; Nebula and stars; Planet and stars. (Nebular and planet can also be combined.) Special offer... If you get your order in before 21st March 2018, 50% discount, otherwise no charge for forum members....
|
|
|
Post by tbird on Mar 12, 2020 22:16:53 GMT -6
I was going to look for graphics, but I think if we can maybe go all out and make them from scratch would be cool. Just a thought.
|
|
|
Post by johnno56 on Mar 12, 2020 22:40:30 GMT -6
I must be doing something wrong... I get a 'segmentation fault'... Commented out all the 'include' files... Re-ran - 'main' is ok... Un-commented 'Ast_Global.bas' and the seg fault popped up. Error #139. I think it may be a Dim statement may not be set to the right value. Had this problem at times with other progs. Usually fixed it by increasing an array value by one... or may be it's just a 'Linux thing'...
J
|
|
|
Post by johnno56 on Mar 12, 2020 23:19:34 GMT -6
I just manually executed the build command, via a Terminal prompt, but of course it died. But, the readout did give me a perplexing clue...
./rcbasic_build /home/john/Projects/rcbasic/asteroidsSkeleton/Asteroids.bas (produced...)
Source: /home/john/Projects/rcbasic/asteroidsSkeleton/Asteroids.bas Error on Line 17 in /home/john/Projects/rcbasic/asteroidsSkeleton/Asteroids.bas: Could not open Ast_Global.bas Compile Failed
Line 17 of Asteroids.bas is: Include "Ast_Global.bas"
What puzzles me is that ALL the "bas" files are in the same directory; ALL the "bas" files have the same file 'permissions' - all are able to be read from and written to.
Then I thought, "Shouldn't the include statement be at the top of the main program?" So, I moved them to the top of Asteroids.bas - re-compiled and the error was different. Instead of failing on line 17 it now fails on line 2...
I do not have much hair left and I am struggling not to tear out what there is... I need coffee...
J
|
|
|
Post by n00b on Mar 12, 2020 23:39:47 GMT -6
Hey johnno56, If you could post the source files I can look at it. I am hoping it is something simple.
|
|
|
Post by johnno56 on Mar 12, 2020 23:40:35 GMT -6
Bypassed all the 'include' lines by creating one 'main.bas' file. Compiled successfully but when executing the skeleton it produced a segmentation fault. My guess would be one of the Dim statements... Still need coffee...
|
|
|
Post by johnno56 on Mar 12, 2020 23:42:35 GMT -6
All files downloaded and extracted from the forum... I have only experimented with Asteroids.bas. All other files un-edited.
|
|
|
Post by n00b on Mar 12, 2020 23:48:29 GMT -6
Can you link to the post where the files are at? I don't see a link this thread.
|
|
|
Post by johnno56 on Mar 13, 2020 0:04:16 GMT -6
Process of elimination. Commented out all section of the main file. Trial and error, saving and compiling. The file finally failed in the "INIT PLAYER MISSILES" section. That's as close as I could get...
J
|
|
|
Post by johnno56 on Mar 13, 2020 0:09:54 GMT -6
The file (post) seems to be no longer there. Maybe tbird has removed it? I will post the file I downloaded, but if tbird did remove it, it may soon be replaced...
|
|
|
Post by johnno56 on Mar 13, 2020 0:20:41 GMT -6
I was going to look for graphics, but I think if we can maybe go all out and make them from scratch would be cool. Just a thought.
If we are going with 'old school' then a basic black or small 'smattering' of stars would probably be ok.
If, as you say, we go 'all out' then I may have some ideas. I will attempt to attach some of the samples made with Gimp tutorials. Stars are the quickest. A planet, not counting errors, takes me about an hour. Nebulas somewhere in the middle.
|
|
|
Post by tbird on Mar 13, 2020 5:20:13 GMT -6
I pulled the code because of the same errors, then when I woke up it hit me, change the array values from 1 to their max to 0 to their max - 1
|
|