Product Chat / Can I overwrite GG files, when in testgame mode?

Author
Message
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 20th Mar 2017 14:01
Hi guys
Firts of all, I already know you do not should overwrite files while app is running, does not matter what the aspp is, so GG can't be different way.
However I would need do it, since I can not see another different way to do it.

What I'm talking about?

Well, I already have all the needed code to backup files:
1- make a backup of your tab tab settings, so you can use it in a different maps.
2- create a folder named as your map, in Files folder.
3- create backup of visual settings and save file withing that folder, for later use
4- create a txt file with all the backups settings path, for later use as well. (this because there is not easy way to get all the files inside a dir, and I want to keep all, as easy as possible, so user can understand and modified all, in easiest way)

If you want try/apply differents setting to your map

1- Write in screen all the backup you've, so you can try or apply the one you like, just enter the backup number.
2- apply the choosen setting to your map
3- you just has to save your map with the new settings.

till here so good.

What's the problem?

There is just 1 way to run scripts in GG, in test mode.
And GG does not allow to touch their files when running, via scritps.

I has to see many workaround to get the backup files while running GG, but I've got, what I can't achieve so far, is apply those changes to my map, while GG running.

Firts I mind about admin rights, but this doesn't looks as the problem.
When GG is running, many files becames read only, therefore too difficult to deal with.

So raise the thread title question, since before do nothing with the script, firts I want to be sure it is possible.
If so, so I know I should focused my scripts for different ways.

Working with set ambience and so forth, does not work well for me, I've got, and all the settings are applied, but terrain becames black. So I decide focused the subject with different approach, and I'm happy with the results, just lack this "small" detail.

If does not, so you'll has to change file manually, nor like now than you just has to place player, a barrel and run you game>back to editor, so you has already your settings backup, for later use, so play with your settings, terrain, sky, visuals, and so on till you get nice results so backup them. At least that's the idea.

3com


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
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 20th Mar 2017 14:23
GG doesn't re-read the files while playing anyway so it wouldn't work unless you can force it to do so.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 20th Mar 2017 14:59
Quote: "GG doesn't re-read the files while playing anyway so it wouldn't work unless you can force it to do so."

Yah I think so. Hopefuly master Lee has some suggestion about.
ignore if this..
Quote: "unless you can force it to do so"

Could cause sysinternal issues with GG, I would like to be sure about.

3com
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
Corno_1
GameGuru Tool Maker
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 20th Mar 2017 16:27
I have 2 solutions
1. we get for each parameter a lua command
2. you programm a little tool which opens the fpm, make a backup of the visual.ini and store it anywhere and if you need it you could copy it back and open the map again in GG

First means a lot of work for Lee, second means some work for you
My dream is to develope games, which makes fun when I create it and fun when other people play it.
PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 20th Mar 2017 17:13
I would say the same as above. Even most commercial games need to reboot when certain elements change. If we get the extra lua commands to suit, it may be possible to do this, although I would be reluctant to release any script which changed any default GG settings. I would write my own file and use that to change the settings myself. The problem still of course is the lack of ability to actually update things to match. I tried something similar ages ago but came across the problem of using the saved stats in any useful way.

This is why we really need all equivalent lua commands Which until recently many didn't agree or at least the voting board didn't.


SPECS: Q6600 CPU. Nvidia 660GTX. 8 Gig Memory. Win 7.
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 20th Mar 2017 17:59
What I've so far...



You are right guys we need some extra commands, and the ability to upload their visual.ini backups in test mode, so we change from day to night, terrain, sky, and so on. That's the idea.

GG crash when I tried to apply settings automatically, while are running.

3com
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
Mortt
8
Years of Service
User Offline
Joined: 16th May 2016
Location:
Posted: 20th Mar 2017 19:06
Now thats interesting. I am working on a level where player gets drugged when captured, but he escapes. When he escapes all the visualls are all wonky. Percpective is all over the place. This all in the same level. BUt cant get it to work for same reasons. Cant have a level with changed settings.
(Custom) Intel i7 3.3 Mhz. 16 GB fast ram. EVGA Nvidia 560 Ti 4GB. Dell US27 2560 x 1440. AOC 24 1920 x 1080. Awesome.
Next G. Card EVGA GeForce GTX 970 Superclocked ACX 2.0 Gaming 4GB GDDR5 PCIe3.0 Graphics Card.
Would Like EVGA NVIDIA GeForce GTX 1080 8GB GDDR5X PCIe3.0 Graphics Card
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 22nd Mar 2017 14:27
Would be nice master Lee giving some solution, to the thread question.
I already has all working fine in the process, till I try to apply the visuals backups, GG does not allow me to do, or even crash.
I know you should not overwrite/replace a file while app is running, but so what we can do?

idea is simple, you just has to have visuals backups for your map (as in the vid), and use them on test/game mode, so you can jump from one settings to other while gaming, and all this process is automated by my scripts, just choose wich settings you want.

Or maybe is there, another different solution?

3com
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
LeeBamber
TGC Lead Developer
24
Years of Service
User Offline
Joined: 21st Jan 2000
Location: England
Posted: 22nd Mar 2017 17:00
As suggested, the solution would be the extra LUA commands which can take full control of every TAB TAB slider in real-time. Changing the visuals.ini file during the software running is not something I have tried, though it should not really (not supposed to) work in theory.
PC SPECS: Windows 8.1 Pro 64-bit, Intel Core i7-5930K (PASSMARK:13645), NVIDIA Geforce GTX 980 GPU (PASSMARK:9762) , 32GB RAM

3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 22nd Mar 2017 17:07
Quote: "As suggested, the solution would be the extra LUA commands which can take full control of every TAB TAB slider in real-time. "

Yes, this might help a lot!

Quote: "Changing the visuals.ini file during the software running is not something I have tried, though it should not really (not supposed to) work in theory."

Not, certainly does not, it would nee re-rendering again (in realtime) from scrach, when you replace files. So GG be aware about changes. Thought.

Ty for feedback. I'll wait for best times, so.

3com
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-11-24 13:55:20
Your offset time is: 2024-11-24 13:55:20