Pages: 1
  Print  
Author Topic: Unknown function or script/events dont work in second project  (Read 7420 times)
Offline (Unknown gender) qwerty
Posted on: January 17, 2015, 12:46:50 pm
Member
Joined: Jan 2015
Posts: 14

View Profile
after my actions with enigma writed in http://enigma-dev.org/forums/index.php?topic=2412.0
i probably broke something and have some strange bugs
(expires then i reinstall enigma, mb i just forgot : after disk letter )

 1. if game builded by Run game options events backgrounds etc dont work
 2. if by Compiling then it never stops after few hours(so i clearly undestand why interpreted langs exists  ;D)

then i reinstall, events/etc start to work(but stops then i try compile another project!) and C-time shrinks to few/10 minutes

but functions like game_end() print error Unknown function or script  :( ( but event message box and func cos() works(and i dont test all funcs/events))
(also i change temp dir from progdata to dir created by me)
« Last Edit: January 17, 2015, 12:48:21 pm by qwerty » Logged
Offline (Unknown gender) qwerty
Reply #1 Posted on: January 17, 2015, 01:05:58 pm
Member
Joined: Jan 2015
Posts: 14

View Profile
also hot new logs
Code: [Select]
Building for mode (0)
Cleaning up from previous executions
 - Cleared parsed objects
 - Cleared room entries
 - Cleared shared locals list
 - Cleared event info
Loading shared locals from extensions list
Location in memory of structure: 4d262d48
Copying resources:
Copying sprite names [1]
Copying sound names [0]
Copying background names [0]
Copying path names [0]
Copying script names [0]
Copying shader names [0]
Copying font names [1]
Copying timeline names [0]
Copying object names [2]
Copying room names [1]
Copying constant names [0]
SYNTAX CHECKING AND PRIMARY PARSING:
0 Scripts:
"Linking" scripts
`Linking' 0 scripts and 0 timelines in 0 passes...
Completing script "Link"
Done.
Completing timeline "Link"
Done.
2 Objects:
 obj_0: 12 events:
  Event[0]:   Parsing 1 sub-events:
Check `obj_0::create...Syntax error in object `obj_0', Create event:0:
Line 2, position 9 (absolute 18): Unknown function or script `game_end'

and(i forgot where i take this log) http://pastebin.com/qaG0h0d0
and ///
« Last Edit: January 17, 2015, 01:09:48 pm by qwerty » Logged
Offline (Male) Goombert
Reply #2 Posted on: January 17, 2015, 01:06:59 pm

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2991

View Profile
Hey qwerty, it may actually be that you downloaded a newer version with some changes in the source. Try deleting the contents of the ProgramData folder, not the actual folder, just the ENIGMA stuff inside it, and then try running and building with ENIGMA again. Sometimes when you update the source code binaries are left over from the previous version.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) qwerty
Reply #3 Posted on: January 17, 2015, 01:15:23 pm
Member
Joined: Jan 2015
Posts: 14

View Profile
i do that and Run other projct with same rezult
and was change temp directory to just d:/temp

also log wiz other projct http://pastebin.com/5ravFjKZ
« Last Edit: January 17, 2015, 01:25:34 pm by qwerty » Logged
Offline (Male) Goombert
Reply #4 Posted on: January 17, 2015, 01:28:36 pm

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2991

View Profile
Quote from: qwerty
(also i change temp dir from progdata to dir created by me)
Are you running with administrative priveleges? Right click ENIGMA.exe and select "Run as administrator" if you aren't using ProgramData then you need specific privileges for it, this is in fact why Microsoft created ProgramData, why would you need to change it?
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) qwerty
Reply #5 Posted on: January 17, 2015, 01:48:06 pm
Member
Joined: Jan 2015
Posts: 14

View Profile
because i can  :v:
anyway i change back and say result, later



erm, sorry i was not changed dir in settings
anyway i change it and say result, later
« Last Edit: January 17, 2015, 01:52:21 pm by qwerty » Logged
Offline (Male) Goombert
Reply #6 Posted on: January 17, 2015, 01:55:47 pm

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2991

View Profile
Ok great yeah, it really should be in ProgramData because that is why Microsoft built the directory into the OS for specific reasons. If you need any more help let us know!
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) qwerty
Reply #7 Posted on: January 17, 2015, 02:00:05 pm
Member
Joined: Jan 2015
Posts: 14

View Profile
looks like now funcs compiling normaly, my bad/
Logged
Pages: 1
  Print