Gamestudio Links
Zorro Links
Newest Posts
OptimialF values in .fac file mostly zero
by SBGuy
6 minutes 52 seconds ago
wanted to share my working player/camera control action C++ app
by rayp
Today at 14:37
Votes for future features
by AndrewAMD
Today at 14:06
Transaction Cost
by jcl
Today at 09:42
Indicator RSI
by jcl
Today at 09:36
Is it possible to do Trade Mode without live brokerage account?
by AndrewAMD
Yesterday at 20:36
MED (or any tool) - change base frame / pose of frame 0 ?
by rayp
Yesterday at 17:55
AUM Magazine
Latest Screens
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Evonet Beta v1.0 : Online Project Development Template
Lake scene
Who's Online
14 registered (SBGuy, kvm, cepturion, alibaba, Mio, AndrewAMD, ChrstphFr, 20BN, 2 invisible), 465 Guests and 4 Spiders online.
Key: Admin, Global Mod, Mod
Newest Members
Mio, thewalruss, jiffdbf, jgtrader, Chefmac
18081 Registered Users
Topic Options
Rate This Topic
#473699 - 08/07/18 03:30 Odd Function execution
Garrettwademan Offline
Member

Registered: 01/26/06
Posts: 229
Loc: Pittsburgh PA
Hello everyone, this one has me boggled beyond belief. So I use A8 with WDL scripts. My project has been running the same "world object" function since I can't remember when, no problems (has been executed well over 100 times in my development). Now that I have added a ton of code (maybe 18MB of code), and about 5000 game objects, this function that loads the models no longer works in Full Screen mode...but works fine in Window Mode. All other functions work fine.

The oddest thing is that I am loading many numbers from a data file in this function, and when I load the value in this function and try to print it to screen, it is always a random number which isn't even in the data file, and models are loading incorrectly. Its like my variables are just random. I also rewrote the code twice simplifying it, but still same error.

I have enough video memory (usingi 3890 / 4096) and nexus (101 left out of 600) per my log file which is strange, and window mode works flawlessly with this function.

Note: Sometimes running full screen works, about 1/5 times it will work full screen. I am testing loading the game in window mode first, then loading this function, and then changing to the proper resolution.

Any ideas on this one?

Here is my acknex log, it the error "Malfunction W1301: ADDPLANE7.MDL: Can't open file" is in the function I am speaking of...

Code:
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: Copperhead Studio LLC

Mouse found
Speakers (Realtek High Definition Audio) opened
NVIDIA GeForce 920MX pure T&L device 1ff9 detected
D3D device NVIDIA GeForce 920MX 1ff9 selected.
Compiling ARCADE_RANDOM.WDL - [Esc] to abort..
PATH scripts
PATH textures
PATH textures/banners
PATH textures/debug
PATH logs.........................
PATH textures/sky
PATH textures/sky/clouds
PATH textures/sky/cosmos
PATH textures/sky/weather
PATH textures/sprites
PATH textures/
PATH meshes
PATH meshes/emitters
PATH meshes/actors
PATH audio/sndfx
PATH textures/sky
PATH textures/sky/clouds
PATH textures/sky/cosmos
PATH textures/sky/weather
PATH audio/sndfx...
PATH textures/sky
PATH textures/sky/clouds
PATH textures/sky/cosmos
PATH textures/sky/weather.............
PATH meshes/terrain.
PATH accounts
PATH textures
PATH audio/sndfx
PATH textures/messages
PATH textures/skills
PATH textures/shop
PATH meshes/emitters......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
PATH textures/inventory..........................................................................................
PATH textures/map_editor
PATH audio/sndfx
PATH audio/music
PATH custom/worlds
PATH meshes/structures/
PATH meshes/actors/
PATH meshes/plants/
PATH meshes/world_editor/
PATH meshes/world_editor/extra
PATH meshes/interactive_we
PATH meshes/interactive
PATH textures/introductions......................................................................................................................................................................................
acknet.dll opened
ackoal.dll opened
ackphysX.dll opened
Running ARCADE_RANDOM.WDL.
2498 objects
D3D_Init Window: 1280x720 -> Window: 1x1280x720x32
Video memory found: 4089 MB
Main started
fncControlMouseMessages_startup started
fncScenLoadCDPlayer_startup started
fncInventoryWRITE_INVENTORY_DATA_startup started
fncInventoryReceiveBuffer2MANAGER_startup started
fncInventory_startup started
fncWatchInstallingPart_startup started
fncWatchPanels_startup started
fncUpdateMaxItems_startup started
fncWatchTimePlayed_startup started
fncWatchOpenPanelLock_startup started
fncWatchMouseAndPanels_startup started
fncSoundWeather_startup started
fncHandleSkyEnt_startup started
fncSoundAmbience_startup started
fncSettingsManageNoChatEntry_startup started
fncSettingsManageMouseOver_startup started
fncCloseDebugLog_startup started
Main loop at 164.974
LevelInit at 165.343
0 entities 0 cameras 0 lights 0 sounds 0 paths
 1 lmaps 0 textures...ok
LevelReady at 165.364....
1st frame with 4089 MB. at 166.359
D3D_Resize Screen: 1280x720 -> Screen: 1x1280x720x32
No valid technique in mtl_ffpwater - enforcing makewater2
Malfunction W1301: ADDPLANE7.MDL: Can't open file
Malfunction W1301: ADDPLANE5.MDL: Can't open file
Malfunction W1301: ADDPLANE5.MDL: Can't open file
Malfunction W1301: ADDPLANE5.MDL: Can't open file
HEADRELATIVE sound: 1
D3D_Resize Window: 320x240 -> Window: 1x320x240x32
Normal exit at 202.832
Close level,DLL,objects
Free input,funcs,panels,defs,syns,views,strings,vars..ok
Free sounds,bmaps,fonts,hash,defs1,script..ok
Close dx,multimedia,D3D,engine,nexus..ok
A8 Engine - Pro Edition V8.47.1 - Mar  9 2016
(c) Conitec - www.3dgamestudio.com
Registered to: Copperhead Studio LLC
Close window at 289.656





Edited by Garrettwademan (08/07/18 03:54)
_________________________
Current Project: Computer Repair Simulator
http://www.computer-repair-simulator.com

Top
#473700 - 08/07/18 04:19 Re: Odd Function execution [Re: Garrettwademan]
Garrettwademan Offline
Member

Registered: 01/26/06
Posts: 229
Loc: Pittsburgh PA
Well after testing multiple times, it appears I have a work around by calling the function before I change the video from window to full screen. I don't know how stable this will be moving forward, but seems to be working 100% now by doing this.

Still curious on what would cause this in case it gets worse later.
_________________________
Current Project: Computer Repair Simulator
http://www.computer-repair-simulator.com

Top
#473852 - 08/22/18 14:22 Re: Odd Function execution [Re: Garrettwademan]
Garrettwademan Offline
Member

Registered: 01/26/06
Posts: 229
Loc: Pittsburgh PA
Figured I would supply an update. So my functions were acting weird and some were not even executing, even some _startup functions didnt work. When compiling the .exe, it crashed every time it was run.

The issue was I had over 32 PATH declarations, after fixing this, the game is operating correctly and I cant see any crashes in the .exe.
_________________________
Current Project: Computer Repair Simulator
http://www.computer-repair-simulator.com

Top
#473876 - 08/24/18 07:43 Re: Odd Function execution [Re: Garrettwademan]
Superku Offline
Senior Expert

Registered: 09/13/03
Posts: 6761
Loc: Kiel (Germany)
Nice find!
_________________________
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Superku The Game

Severely outdated footage: http://store.steampowered.com/app/407570

Top


Moderator:  HeelX, Spirit 

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

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