|
Updating to A8 [SOLVED]
#477379
06/21/19 00:32
06/21/19 00:32
|
Joined: May 2005
Posts: 868 Chicago, IL
Dooley
OP
User
|
OP
User
Joined: May 2005
Posts: 868
Chicago, IL
|
UPDATE: The old shaders I was using from A7 were preventing the game from compiling in A8. I am updating my games to work with A8. One of them worked with very little issues. My other game, which is older and bigger in terms of content, is not so easy. The game crashes before loading, and the log looks like this:
Log of A8 Engine 8.47.1 run at Thu Jun 20 19:25:15 2019
Schmidt on Windows NT/2000/XP version 6.1 Build 7601
Options level_001.c -nx 500 -diag
App: C:\Program Files (x86)\GStudio8\acknex.exe in E:\My Documents\3dGameStudio\Star Explorers\Star Explorers Lite-C - A8\
MM mixer opened
DSOUND device opened
DI interface opened
Start Window opened(c) Conitec - www.3dgamestudio.com
A8 Engine - Pro Edition V8.47.1 - Mar 9 2016
Development version
Registered to: Michael Schmidt
Mouse found
Speakers (VIA High Definition Audio) opened
NVIDIA GeForce GTX 770 pure T&L device 1ff9 detected
D3D device NVIDIA GeForce GTX 770 1ff9 selected.
knownfolder.dll opened
SteamGS.dll opened
acknet.dll opened
ackoal.dll opened
ackphysX.dll opened
Compiling LEVEL_001.C - [Esc] to abort....
PATH C:\Program Files (x86)\GStudio8\code\
PATH C:\Program Files (x86)\GStudio8\templates\images\.......
PATH C:\Program Files (x86)\GStudio8\code\...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Not sure what to look for, it is not giving me any cause for the crash. I set warn_level to 6, but no warnings pop up. I am sure it has to do with my code, since my other game worked fine. I'm just wondering what sorts of things I might want to look for as potential causes for this behavior. The error seems to be happening during the compiling process, before the "main" function is even called.
Last edited by Dooley; 06/21/19 15:50. Reason: solved
|
|
|
Re: Updating to A8
[Re: Dooley]
#477384
06/21/19 08:40
06/21/19 08:40
|
Joined: Jul 2007
Posts: 619 Turkey, Izmir
Emre
User
|
User
Joined: Jul 2007
Posts: 619
Turkey, Izmir
|
That's weird. Just in case you should know that there may be one or two little issue about compatibility in A8 but they are not important. For example: In the past, we used the pansetdigit function to add string to the panel. We could set NULL the pv. (last variable of pan_setdigits.) sample: pan_setdigits(testpan,0,0,0,"asdasdasd",myfont,1,NULL); As far as i remember in A8 you can't set NULL pv. if you do that, you will get error. (invalid pointer) so instead, you have to use pan_setstring function. (which is the correct function for this purpose. So there is no problem.) But your situation looks like different. You are not getting an error message. That could be anything. Maybe you're facing an undiscovered bug.
|
|
|
Re: Updating to A8 [SOLVED]
[Re: Dooley]
#477396
06/22/19 10:23
06/22/19 10:23
|
Joined: Jul 2007
Posts: 619 Turkey, Izmir
Emre
User
|
User
Joined: Jul 2007
Posts: 619
Turkey, Izmir
|
Q. Strange things happen when I run my project. A. If you've copied script or .fx files from a program folder into your project folder, and/or modified them, make sure that they are updated as well. Apart from that, see compatibility notes below. Just for better understanding; this was the issue i guess? That means; the problem is not about A8->A7 compatibility, but about updating. Because i'm very sure there is no differences about hlsl, between A7 and A8. Except; The A8 includes a number of features that are not affect compatibility like: "support for: include code from fx files with the #include statement" or "allowing the effect file to contain several techniques for different materials." By the way, i'm glad you solved the problem.
|
|
|
Re: Updating to A8 [SOLVED]
[Re: Dooley]
#477406
06/23/19 21:19
06/23/19 21:19
|
Joined: May 2005
Posts: 868 Chicago, IL
Dooley
OP
User
|
OP
User
Joined: May 2005
Posts: 868
Chicago, IL
|
So far, I disabled the view shaders, so I removed any reference in the script to .fx files. After doing that, the script was able to compile. I am guessing that I was using some old shaders that were no longer compatible, but I really don't know which ones. By the way, these are view shaders from the Wiki, so many of them were fairly old.
I am starting to re-introduce the built in shaders to replace the old ones.
Also, I was using a script called PP_Helper.c which I can't quite remember where I got. Maybe from AUM? It looks like A8 has a built in command pp_set and pp_add that has the same functionality, so I will be using those...
|
|
|
|