Scripts / [SOLVED] Stand alone build not saving data files

Author
Message
Jnick
8
Years of Service
User Offline
Joined: 10th Feb 2016
Location: U.S.A.
Posted: 20th Jun 2020 20:11
I open and read a data file in a conversation script to pick up dialog. The test game function works perfectly , when ran it opens the file and displays the conversation from the file.

When a standalone is created the files folder created does not contain the data files. I have tried to place the data file in the script bank, databank and other locations including the main level of folders, but it in no case is it included in the stand alone build.

The stand alone build logic does not recognize that the file that is being opened is needed in the build.

The author of this post has marked a post as an answer.

Go to answer
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 20th Jun 2020 22:12 Edited at: 20th Jun 2020 22:15
You have to tell the engine if you have files that you load your self so it knows to carry them over in the standalone, there is a special file that you add them to by I can't remember what its called.

Edited to add: The best solution is probably to create a script that writes the file for you if it doesn't already exist!
Been there, done that, got all the T-Shirts!
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 21st Jun 2020 03:57
This post has been marked by the post author as the answer.
Quote: "there is a special file that you add them to by I can't remember what its called."


https://forum.game-guru.com/thread/220545
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
Jnick
8
Years of Service
User Offline
Joined: 10th Feb 2016
Location: U.S.A.
Posted: 21st Jun 2020 04:44
That worked perfectly, just be sure to place the FPP file in the same folder as the map file.
PM
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 21st Jun 2020 08:25
Could you not add the include line to the script that accesses it, pointing to the data file, that should tell the exporter to copy it over shouldn't it? Or does it only work with lua and audio files?

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Primary Laptop:
i5, NV1050 4GB, 8GB memory, 1x 1TB HDD, Win10.

Secondary Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 21st Jun 2020 20:00
It looks like it doesn't work with files loaded via script (plane files, audio files loaded via globalsound commands, sprite image files).
For this reason, I wrote a tool than encloses all the files used over a map in one folder named the same as the map, within the entitybank folder, that way it is so easy to generate a standalone file since all the files are there, even those loaded via a script, due to my tool open/read all the scripts used over the map. There may be some vid about, somewhere.
The standalone features really needs some attention and get the focus when possible, of course.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM

Login to post a reply

Server time is: 2024-12-22 02:53:47
Your offset time is: 2024-12-22 02:53:47