Community
Message Board

Chat room - users
Game Over
( 394431 downloads)
Work In Progress
( 523201 downloads)
Links

Code Exchange
Downloads
Tutorials
Add to Favourites

Submit news

DIV ARENA FORUMS
Not logged in [Login - Register]
Go To Bottom

Printable Version  
Author: Subject: Loading and saving ASCII textfiles?
RKSoft
Game Making Machine!
******


Avatar


Posts: 155
Registered: 1-3-2016
Location: Germany
Member Is Offline


[*] posted on 6-5-2017 at 01:45 PM
Loading and saving ASCII textfiles?


There is the FOPEN...FCLOSE statement to load/save files. And there is the LOAD and SAVE statement. When i save variables, strings etc. i cannot read the file with a text editor. Is there a possibility? Or can you add a function for such a feature, please?
View user's profile Visit user's homepage View All Posts By User
CicTec
DIV Pro
******




Posts: 196
Registered: 6-8-2016
Member Is Offline


[*] posted on 6-5-2017 at 03:24 PM


Hello RKSoft,

DIV (FOPEN, FWRITE, etc ...) functions save by default only in binary mode and work in reverse with respect to their equivalents in C/C++, adding support now is quite difficult without breaking compatibility with DIV2 programs.
View user's profile View All Posts By User
RKSoft
Game Making Machine!
******


Avatar


Posts: 155
Registered: 1-3-2016
Location: Germany
Member Is Offline


[*] posted on 7-5-2017 at 01:54 PM


Why not add the statements TOPEN/TCLOSE (Text Open/Close) for ASCII textfiles?
View user's profile Visit user's homepage View All Posts By User
CicTec
DIV Pro
******




Posts: 196
Registered: 6-8-2016
Member Is Offline


[*] posted on 8-5-2017 at 10:30 AM


Adding new names of features that do almost the same things as others is not a good design choice for the API of a language. Also, as mentioned several times, DIV3 needs complete modernization, adding features now and then deleting them again would only create difficulties for users.

I think for now the best solution is to make the current version as stable as possible, and once we have the time (especially Mike) for the new version, we will see what the new DIV standard will be.


Why do you need a text file? with FWRITE/FREAD you can still save / read text strings even if you save them in binary form.
View user's profile View All Posts By User
RKSoft
Game Making Machine!
******


Avatar


Posts: 155
Registered: 1-3-2016
Location: Germany
Member Is Offline


[*] posted on 8-5-2017 at 03:33 PM


When i make a level with my level-tileset-editor or make a based like game with tileset i can convert made games from Blitz Basic to DIV DX easier. But this feature isn't really important at this moment, really! How you said, the important priority is to stable and fix the current DIV DX build.

Big thanks to you for making this possible in your spare time!
View user's profile Visit user's homepage View All Posts By User

  Go To Top

Powered by XMB
XMB Forum Software © 2001-2012 The XMB Group
[Queries: 18]