Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, NeoDumont), 761 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Difference between Published Script and Working Script #449559
03/24/15 08:38
03/24/15 08:38
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 868
Chicago, IL
Can anyone explain the basic differences between running your script through WED or SED, and running it after it's been published?

My game works fine when I run through WED, but after publishing it, it crashes with no explanation.

I increased the warning level to 6 in WED, and it starts without any warnings, but it still won't start when I try the published version.

In the publishing process, it says it's skipping only one file, which is acknex.wdf. According to the manual this is only used by the professional version ... I have commercial.

I am still using A7 engine, if that makes a difference.

Any help would be appreciated.

Re: Difference between Published Script and Working Script [Re: Dooley] #449562
03/24/15 13:21
03/24/15 13:21
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
Its probably because of a missing file or two...
Manualy copy that file to the folder to see if it fixes the problem.

Also, I recently published in A6 and noticed that it requires a file from directx 9 (on Windows 8.1!). I always had that file, so I never knew it was needed for a fresh Win8.1. I had to manualy include it in the folder to fix the problem.
And, by the way, the game started without that file...


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201
Re: Difference between Published Script and Working Script [Re: EpsiloN] #449584
03/24/15 19:06
03/24/15 19:06
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 868
Chicago, IL
I noticed that the following files were not copied into the folder. I copied them from the GStudio7/acknex_plugins folder. When I included these files in my .cd folder, it mentions that they are being opened in the startup window.

ackwii.dll
ackport.dll
t7.dll

It still crashes, but I feel like this might be the right direction...

Re: Difference between Published Script and Working Script [Re: EpsiloN] #449586
03/24/15 19:34
03/24/15 19:34
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 868
Chicago, IL
Also,
There are a lot of files in my game. Is there a fast way to figure out which, if any, files are missing?

Re: Difference between Published Script and Working Script [Re: Dooley] #449588
03/24/15 19:45
03/24/15 19:45
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Have you tried copying the dlls and the exe into your development folder and start it from there (where all files should be present)?


"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: Difference between Published Script and Working Script [Re: Superku] #449589
03/24/15 20:17
03/24/15 20:17
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 868
Chicago, IL
Just tried it, it doesn't work.

I randomly removed some of the image files from my folder, just to see what would happen. It does not make it past the startup screen, and it says "Can't open >name of image file< ...

So I don't think it's to do with any missing files.

Also, I removed the d3dx9_30.dll file from my .cd folder, just to see what would happen, and it did not make any difference. It gets past the loading screen, then it tells me that "Level_001.exe has stopped working..."

Could it be directx related?

For the record, I have also tried including different versions of the directx files, including d3dx9_30,32,42 and 43. I saw this had solved someone else's issues on another thread.

Re: Difference between Published Script and Working Script [Re: Dooley] #449590
03/24/15 20:50
03/24/15 20:50
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 868
Chicago, IL
Progress!
I got the game to load after removing an #include statement for a script that was not being used.

It seems to work fine now, but when I press "esc" to open the menu, the game crashes. Again, the menu works fine when I run through WED.

I noticed that two of the default scripts include an on_esc command. Could this be the issue?

One is in default.c (which I removed from my script) and the other is in avars.h, which I have no idea as to its function.

Re: Difference between Published Script and Working Script [Re: Dooley] #449591
03/24/15 21:00
03/24/15 21:00
Joined: Jan 2006
Posts: 968
EpsiloN Offline
User
EpsiloN  Offline
User

Joined: Jan 2006
Posts: 968
First, make sure you have no missing wait(1) instructions in every while loop you have... I've got this problem before, the engine didn't complain for some reason, some of the time...

After that, try starting the exe with the same defined parameters in SED or WED. I'm not sure the published version has any parameters saved as in WED's Run dialog.

And if nothing helps, you've got only one thing left. A painfully repeating task:
Start commenting one by one the functions you call from main() and other functions, and publish->run after each comment to see if it fixes the problem. This way you will find out which function crashes your game.


Extensive Multiplayer tutorial:
http://mesetts.com/index.php?page=201
Re: Difference between Published Script and Working Script [Re: EpsiloN] #449593
03/24/15 21:21
03/24/15 21:21
Joined: May 2005
Posts: 868
Chicago, IL
Dooley Offline OP
User
Dooley  Offline OP
User

Joined: May 2005
Posts: 868
Chicago, IL
Thank you.
How would I define parameters in the .exe file? Here's what it's using in WED...

level_001.c -nx 200 -diag

This goes back to my original question. What is different in running through WED vs the published version? I'm hoping someone knows why they perform differently, because this would help narrow down the problem.

With that said, I'm guessing there's something wrong with my menu script, since this is where the crash happens. I'll look for missing wait instructions there...

Re: Difference between Published Script and Working Script [Re: Dooley] #449594
03/24/15 21:58
03/24/15 21:58
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
I spend the last 5 days (about 2 hours a day) searching for that freaking bug. Mine also performed well in developement mode, but crashed when published. I don´t know why, but I had a lot of ent_create, ent_preload and ent_remove calls one after the other. Putting wait´s between the ent_create and preloads solved it somehow.

You´ll need a lot of patience! Best of luck!


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Page 1 of 2 1 2

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