Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (TipmyPip, AndrewAMD, Quad, aliswee, degenerate_762), 970 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 6 1 2 3 4 5 6
Publishing problem #446023
10/02/14 00:55
10/02/14 00:55
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
FoxHound Offline OP
Expert
FoxHound  Offline 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: FoxHound] #446025
10/02/14 05:03
10/02/14 05:03
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
What do you mean with "It simply won't load the game"?


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
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 Offline OP
Expert
FoxHound  Offline 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: FoxHound] #446044
10/02/14 16:32
10/02/14 16:32
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Some guesses:
A missing or a damaged file.
A my/me/you pointer (unwillingly) instead of a PARTICLE in a particle function/ event function - I've once helped finding a seemingly random "acknex.exe has stopped working crash" in a bigger project. That was the reason.
You are overwriting some memory somewhere, for example in a loop and an array where you go one step to far, or you have for instance my_array[i] = ...; somewhere where i can have any value because you wanted to write my_array[num] instead.

I'd say create a copy of the whole game folder, then delete files and content and maybe even script, write diag(...) and the like everywhere and check if the crash still appears. If it doesn't use a previous version/ copy and delete less stuff, like in the mathematical interval halving method.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
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 Offline OP
Expert
FoxHound  Offline 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: FoxHound] #446069
10/03/14 15:52
10/03/14 15:52
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
I don't think one or me in particular can be of much help here without seeing the (whole) code/ project, you'd either have to post it (stripped down) or debug it yourself.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: Publishing problem [Re: Superku] #446071
10/03/14 16:11
10/03/14 16:11
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
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:
Quote:
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 Offline OP
Expert
FoxHound  Offline 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: FoxHound] #446087
10/03/14 22:24
10/03/14 22:24
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Had same issues on my project.
I had to remove the waits...
That was really annoying.
One of the reasons I hate scripting languages is this xD
(I should have coded in C++ though...)

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 Offline OP
Expert
FoxHound  Offline 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!
Page 1 of 6 1 2 3 4 5 6

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1