Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Log file Engine

Author
Message
silken
20
Years of Service
User Offline
Joined: 13th May 2004
Location:
Posted: 4th Apr 2011 16:10
hi,


I would like to know if there are Options for activate "Log file engine" in GDK.

Because in complex project, if I load an image and the Image don't exist I don't have any message to say me file doesn't exist..

In DBpro if, the file don't exist ou bad location, the engine send a message and say "image doesn't exist.

In the source of GDK a see CRunntimeErrors.h with de General message code error.. so How I can activate messages errors?


thx
Oneka
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 4th Apr 2011 17:50
Well, one way you can do this is by editing the GDK source which is good is you take the time to do it properly,

Another method is, make a logging system within your game/engine that stores information that you want to track when it happens, this means it is probably better for you to make a centralized loading system, so that all loading can be done from a function or set of functions, and within those just store all the information related to that process, and you can track the problem through that.


Making dreams possible, one line at a time...
silken
20
Years of Service
User Offline
Joined: 13th May 2004
Location:
Posted: 4th Apr 2011 18:17
ok thx..


but I think in GDK, there are allready fonction:



if the fonction return false.. a Message is sent...
Matty H
15
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 4th Apr 2011 18:25
You can just write your own simple wrapper for the load functions:
(Not tested)


silken
20
Years of Service
User Offline
Joined: 13th May 2004
Location:
Posted: 4th Apr 2011 18:43
ok

I think i'll try this method

thx
Oneka
20
Years of Service
User Offline
Joined: 24th Apr 2004
Location: Hampton,VA
Posted: 5th Apr 2011 00:24
The method matty halewood put is basically what I said


Making dreams possible, one line at a time...
silken
20
Years of Service
User Offline
Joined: 13th May 2004
Location:
Posted: 6th Apr 2011 12:37
yes..


but finaly I don't use this method.. because I want to debug to many fonction..

Login to post a reply

Server time is: 2024-06-16 00:54:39
Your offset time is: 2024-06-16 00:54:39