Help with your scripting

No code checking

No code checking

Postby SpiderMack » 29 Sep 2017, 11:18

Hi,

I found that having some wrong code line does not affect other script part to run.
Worst is there is no error message or no warning about the wrong code line :shock:

And "Valide script" button does not indicate a line code is wrong.

For example i have this line of code with wrong number of parameters

Code: Select all
   entity.lookatObject(100, 0, 1, 0);


It does not stop script from running, and this is an issue.
Because without code checking we can't know what are the errors in code we write ?

It is possible to get some compilation and check ?
User avatar
SpiderMack
Skyline Expert
 
Posts: 441
Joined: 02 Dec 2016, 09:15
Skill: Concept artist
Skill: 3D Modeller
Skill: Level Designer
Skill: Scripter

Re: No code checking

Postby SolarPortal » 29 Sep 2017, 11:40

there is basic code checking for example, if you make a syntax error or miss a then of the if etc...
that is using lua's code checker. We haven't got around to making the skyline commands error checking, but again this is planned and has been requested by users before :)
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: No code checking

Postby SpiderMack » 29 Sep 2017, 11:59

Checker does not say there is some error :

Code: Select all
randomZ =  math.random(-1,1);
        randomZ.x =  randomZ.x +1 ;


(This is why C# for example would be thousand times better)
User avatar
SpiderMack
Skyline Expert
 
Posts: 441
Joined: 02 Dec 2016, 09:15
Skill: Concept artist
Skill: 3D Modeller
Skill: Level Designer
Skill: Scripter


Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 6 guests

cron