|
Post by commended on Jan 4, 2016 16:50:21 GMT
Hi all,
I have just began to make an open world game with missions and other things like that, it is set in my hometown in England. The place is pretty big and I don't think many computers would be able to run it if I had not implemented Render Detail. Also, as this game has missions a save feature is probably in order.
I would appreciate any methods for this(I know it's quite allot to ask) so I hope to hear from you all soon.
Thanks:)
|
|
|
Post by ariablutron98 on Jan 5, 2016 14:49:50 GMT
Hey buddy! sorry i cant help with the save game feature as im trying to do the same thing! im making an open world game on 3d rad which has over 70 missions and its based in us while im based in uk so i gotta guess and rely on google maps lol. anyway i think to make game saves one thing ive done is make folders for the saves to go into then i think u need to make a cfg file to configer the saves? ? maybe. sorry if i didnt help but im saying ur not alone!!!
|
|
|
Post by MonstaWolf on Jan 5, 2016 15:27:26 GMT
I can probably help you, but it depends on how complex you want the render/save systems to be and also how experienced you are (as I'm bad at explaining stuff). I only recently was able to make my game read from a file (it can write as well).
|
|
|
Post by ariablutron98 on Jan 5, 2016 15:56:57 GMT
Please do! it will help both of us! lol
|
|
|
Post by Power Supersport on Jan 5, 2016 18:28:49 GMT
Ok... I need to post as the best implementor of 3D Rad's read/save system... ... Joking... You can have better look at open-world script: 3drad.boards.net/thread/106/minecraft-terrain-generationI will show you the logic... int File = iFileReadOpen(".\\myfile.txt"); float value = iFileValueRead(File); iFileClose(File); Let's explain... int File is an integer that is returned when the file is opened... you don't care about this value except it's name... You can name it whatever you want, but you have to change the other words aswell... Into iFileReadOpen() You type the path of the file... float value can be declared before and also can have different name... it's the value you're reading... iFileValueRead() You type here the integer File or your custom name... iFileClose() Closes the file... It's important to close the file...
When you learn these basics you can go to the next level... The String reading... Instead of reading a value, you will read a string... iFileStringRead(File,string) String returns the characters from the file...
If you want multiple lines to read, write multiple lines of iFileValueRead() or iFileStringRead()
I know it sounds hard and complicated, but I will show you example that will explain everything... This is the text file opened in Notepad: StereoMadness 129 952 YouTube Call 5451 To get these values, this is the following into 3D Rad... string str1, str2, str3; float f1,f2,f3;
//---------------------------
int File = iFileReadOpen(".\\myfile.txt");
iFileStringRead(File,str1); // Reads first line f1 = iFileValueRead(File); // Reads the second line f2 = iFileValueRead(File); // Reads the third line iFileStringRead(File,str2); // Reads the fourth line iFileStringRead(File,str3); // Reads the fifth line f3 = iFileValueRead(File); // Reads the sixth line
iFileClose(File); What you get as a result is: str1 = "StereoMadness"; str2 = "YouTube"; str3 = "Call"; f1 = 129; f2 = 952; f3 = 5451; You can use these as how as you want... That's the reading technique... If you found this useful, I will post again for writing technique...
|
|
|
Post by commended on Jan 7, 2016 18:20:20 GMT
Hey buddy! sorry i cant help with the save game feature as im trying to do the same thing! im making an open world game on 3d rad which has over 70 missions and its based in us while im based in uk so i gotta guess and rely on google maps lol. anyway i think to make game saves one thing ive done is make folders for the saves to go into then i think u need to make a cfg file to configer the saves? ? maybe. sorry if i didnt help but im saying ur not alone!!! Thanks, I will see what I can do with what you've told me:)
|
|
|
Post by commended on Jan 7, 2016 18:21:23 GMT
I can probably help you, but it depends on how complex you want the render/save systems to be and also how experienced you are (as I'm bad at explaining stuff). I only recently was able to make my game read from a file (it can write as well). I am reasonably experienced with 3d rad, I can do basically everything besides the REALLY confusing scripting stuff.
|
|
|
Post by commended on Jan 7, 2016 18:25:36 GMT
Are you explaining how to make a randomly generated map, because if so(I feel bad as you wrote me ALL that!) I am making the map by hand as Its set in my home town. Sorry...
|
|
|
Post by Power Supersport on Jan 7, 2016 20:45:34 GMT
My tutorial up there is just for the read multiline system, not random generation...
|
|
|
Post by MonstaWolf on Jan 8, 2016 12:37:16 GMT
I can probably help you, but it depends on how complex you want the render/save systems to be and also how experienced you are (as I'm bad at explaining stuff). I only recently was able to make my game read from a file (it can write as well). I am reasonably experienced with 3d rad, I can do basically everything besides the REALLY confusing scripting stuff. Oh... I'd recommend trying to learn Angelscript, It's the key to making great games in 3DRad.
|
|