2 registered members (Ayumi, 1 invisible),
584
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Publishing problem
#446023
10/02/14 00:55
10/02/14 00:55
|
Joined: Jun 2004
Posts: 2,234 Wisconsin USA
FoxHound
OP
Expert
|
OP
Expert
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
|
I have a problem when I publish a project, sometimes It simply won't load the game and sometimes it will crash at weird points. Is there a way I can make my development build act the same as the published build?
Currently my issue is a wait being in a certain function. When I pull out the function it is fine, when I have the function skip all the actions and simply put out the solution (the function moves a panel to a certain pointer). This would show all the parameters being passed are good.
I know this won't point to the area that is wrong in my code, I just need some ideas on what could be causing my problems.
--------------------- There is no signature here.
QUIT LOOKING FOR ONE!
|
|
|
Re: Publishing problem
[Re: Superku]
#446043
10/02/14 16:21
10/02/14 16:21
|
Joined: Jun 2004
Posts: 2,234 Wisconsin USA
FoxHound
OP
Expert
|
OP
Expert
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
|
You start the game and it instantly crashes, yet when started from SED it works just fine.
Currently it does not do that but it has many times for me in the past.
--------------------- There is no signature here.
QUIT LOOKING FOR ONE!
|
|
|
Re: Publishing problem
[Re: Superku]
#446047
10/02/14 17:59
10/02/14 17:59
|
Joined: Jun 2004
Posts: 2,234 Wisconsin USA
FoxHound
OP
Expert
|
OP
Expert
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
|
All are fine in my case. The function I am talking about does not use any thing new, just takes a panel and runs it to a certain location. I can take the panel in the function and set it to the new location and it's fine, but if I put a wait in that function, even if nothing else happens in that function, it will crash, comparable to passing a struct without using &.
--------------------- There is no signature here.
QUIT LOOKING FOR ONE!
|
|
|
Re: Publishing problem
[Re: Superku]
#446071
10/03/14 16:11
10/03/14 16:11
|
Joined: Dec 2011
Posts: 1,823 Netherlands
Reconnoiter
Serious User
|
Serious User
Joined: Dec 2011
Posts: 1,823
Netherlands
|
A few wild quesses (like really wild and most probably nonsense, but maybe it helps): Wait returns local, my and you pointers, maybe the pointers are bad / damaged somehow? The Scheduler List is different? Maybe this helps from the manual: While a function is waiting, all other functions - including the calling function - continue to run in parallel, so all global variables and all pointers except my and you can possibly change during the wait time. !! While the content of local variables is preserved, their addresses change after every wait() because the function runs every time in a different stack frame.
|
|
|
Re: Publishing problem
[Re: Reconnoiter]
#446076
10/03/14 18:34
10/03/14 18:34
|
Joined: Jun 2004
Posts: 2,234 Wisconsin USA
FoxHound
OP
Expert
|
OP
Expert
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
|
I am more hoping that someone has been through something like this and has an idea on how to fix it.
The short version of this is the game works fine when called from SED, but when I publish it it will always crash in a certain function that does not with any new items, and when the wait(1); is removed from the function it works just fine.
--------------------- There is no signature here.
QUIT LOOKING FOR ONE!
|
|
|
Re: Publishing problem
[Re: Ch40zzC0d3r]
#446151
10/06/14 17:46
10/06/14 17:46
|
Joined: Jun 2004
Posts: 2,234 Wisconsin USA
FoxHound
OP
Expert
|
OP
Expert
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
|
I "fixed" my problem by taking out everything from the function itself and put it in the calling function. It works but I am not happy with it.
--------------------- There is no signature here.
QUIT LOOKING FOR ONE!
|
|
|
|