Scripts / scripting workflow

Author
Message
dirkk0
10
Years of Service
User Offline
Joined: 20th Jan 2014
Location: Germany
Posted: 26th Jan 2014 13:19
Hi,



what is the best workflow to test scripts? I found that simply editing the script file doesn't trigger a reload, even assigning a different script and switch back to the script doesn't. For the moment I need to restart the FPSCR to get the changed script loaded. Is there a better way?



Thanks,

Dirk
Fane
11
Years of Service
User Offline
Joined: 9th May 2012
Location: Deutschland
Posted: 26th Jan 2014 19:51
I had the same problem. I was unable to find a solution so I think we have to wait until it gets improved.
PM
dirkk0
10
Years of Service
User Offline
Joined: 20th Jan 2014
Location: Germany
Posted: 26th Jan 2014 19:57
Thanks for your answer, fane!



So you wrote/debugged your medicstation script (thanks for that, too!!) by restarting FPSCR over and over again?



@lee this should be improved soon.



-- Dirk
Fane
11
Years of Service
User Offline
Joined: 9th May 2012
Location: Deutschland
Posted: 26th Jan 2014 23:15
Quote: "So you wrote/debugged your medicstation script (thanks for that, too!!) by restarting FPSCR over and over again?"




Yes
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 4th Feb 2014 19:00
with the new version it seems to be that you no longer need to restart fpsc to edit/test a script

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
kehagiat
10
Years of Service
User Offline
Joined: 16th Jul 2013
Location:
Posted: 4th Feb 2014 22:48
With version 310114 I find that once a script has been compiled, changes to the lua file do not "register" during execution.



The workaround I use is to save every new version of the script with a slightly different name, e.g. script01.lua, script02.lua, script03.lua, ... and then go to entity edit mode, right-click on the entity and associate it to the new script. If it is the first time the script is used, it is a new compilation and changes take effect.



It takes a few extra clicks to do this, but it is faster than restarting FPSC.



Thanasis

Whereof one cannot speak thereof one must be silent
tomjscott
User Banned
Posted: 7th May 2014 22:10
Quote: "with the new version it seems to be that you no longer need to restart fpsc to edit/test a script "




I have to restart the editor every script change with the current version. It is very time consuming. I really hope this is fixed in 1.007.
BarZaTTacKS
10
Years of Service
User Offline
Joined: 3rd Feb 2014
Location:
Posted: 12th May 2014 17:34
@tomjscott This will help my learning process incredibly. It is really hard to make simple quick changes at the moment when I have issues. I also have a tendency to want to try a few edits at once to help minimize the down time when restarting but im su
PM

Login to post a reply

Server time is: 2024-04-26 03:18:09
Your offset time is: 2024-04-26 03:18:09