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.

DarkBASIC Professional Discussion / Cant get darklights to work.

Author
Message
mnemonic
19
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 24th Feb 2012 17:02
When using the lighmapperIDE I cannot create the lightmap, every time I press F3 and F4, windows says that the application has encountered a problem and needs to close.

(When I press F3, the settings dialog box appears, but when I press RETURN i get the error) F4 is for scipping the setting box, so that does not work at all.

Compiling the example code is not a problem, they work fine,,, but,,,hm,,, why can they create lightmaps?

One thing else,,, I can't compile the source code for the darklightsIDE; DBpro says:
Could not determine parameter type of 'OPEN FILE DIALOG(root$+"\MyScenes\", "*.dbo;*.x", "Load a model to lightmap at line 104

I have Windows7 64 bit, NVIDIA geforce 560 TI and the latest version of DBpro installed

www.memblockgames.com
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 27th Feb 2012 12:53 Edited at: 27th Feb 2012 12:54
in case you have not tried this already or done so... [its my blog version which is still open to debate or can be debated here]

The TGC Forum version for balance, you can pick whichever you wish to use [its locked due to not being replied to, you can debate that one here in your thread]

Try setting up DEP for the lightmapperIDE [my post in the links, explains how to use DEP]

[We have a similar setup btw]

EDIT

Woops forgot to add the forum link lol sorry my bad, fixed above

mnemonic
19
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 27th Feb 2012 20:06
Thanks! I tried all your 3 steps, but It did not work. The error stays the same

Do you have the same graphics card as I? If so, could it be something witj the settings? No,,,, I don't think so,, but with computers yo never know I have the latest grapgics drivers.

Windows7 is 'bullying' TGC products I think,,, I also have a wierd problem with FPSC, lightning works, but can be a little painfull from time to time,,, eg, dynamic lightning still works when I have set FPSC to use full lightmapping. Sometimes, and sometimes not.
and sometimes if I leave to computer with FPSC open to go do something else and returns after 5 minutes or so, there is a message on the screen saying that FPSC has encountered a problem and needs to close.

I also have problems with DBpro sometimes not compiling code, I get an error, but then i try to compile the same code after a second and it works fine.

All these weird error occours at random, so finding the source is hard. Microsoft sequruty essentials don't find viruses or anything and I've got the latest definition files. Maybe it could have been some stupid windows update thing in the past that have corrupted the whole OS or something.

Hmmm,,,well,,,Windows! It´s a mystery

www.memblockgames.com
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 27th Feb 2012 21:58 Edited at: 27th Feb 2012 22:02
I don't think it's anything to do with Windows security or Windows 7. I get the same error message using XP.

The message seems to be saying that it doesn't recognize the function OPEN FILE DIALOGUE(). I can't find any other reference to that function so I guess that's your problem.

I've no idea what happened to the original function - or indeed whether it's a DBPro function or something else. It looks rather like a function that might be using one of the Windows DLLs such as user32 - but in that case there's some missing code.

I have what seems to be the original working exe file if that's any use.

Edit I should have added that you don't need the LightMapperIDE - just look at the various demo projects that come with DarkLights. They should be OK.
mnemonic
19
Years of Service
User Offline
Joined: 14th Jan 2007
Location: Sweden
Posted: 27th Feb 2012 22:18 Edited at: 27th Feb 2012 22:23
I've been told by the TGC support that the OPEN FILE DIALOG() is part or the DBpro expansion pack, and that I need to install that one in order to compile the source.

Since DarkLights has been around for a while I assume that maybe the precompiled version of lightmapperIDE is compiled with an old version of DBPro, I thought that maybe if I recompile the source It will work better since I remember that prior versions of DBpro had problems in compiling with Win7.

I think of getting the pack, I'm sure it could be good for other purposes as well.

Quote: "should have added that you don't need the LightMapperIDE - just look at the various demo projects that come with DarkLights. They should be OK."


yes, you're right. But I think the lightmapperIDE tool could be a good way to quickly lightmap objects if I could just get it to work ok.

www.memblockgames.com
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 27th Feb 2012 23:14
Quote: "But I think the lightmapperIDE tool could be a good way to quickly lightmap objects if I could just get it to work ok."


Possibly. But I found it easier to write my own code based on the demos.
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 27th Feb 2012 23:46 Edited at: 28th Feb 2012 00:03
Quote: "Since DarkLights has been around for a while I assume that maybe the precompiled version of lightmapperIDE is compiled with an old version of DBPro, I thought that maybe if I recompile the source It will work better since I remember that prior versions of DBpro had problems in compiling with Win7."


SP1 did that

Quote: "I think of getting the pack, I'm sure it could be good for other purposes as well."


I got it its good!

STYX btw Enhancement Pack is good too

Quote: "Possibly. But I found it easier to write my own code based on the demos. "


Agree

EDIT

Quote: "I've been told by the TGC support that the OPEN FILE DIALOG() is part or the DBpro expansion pack, and that I need to install that one in order to compile the source."


I presumed you had it XD

Brendy boy
20
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 28th Feb 2012 00:36
Quote: "OPEN FILE DIALOG()"

if you need only that command there are a few plugins that have it, including my BBB GUI

GeeBee
17
Years of Service
User Offline
Joined: 26th Aug 2008
Location:
Posted: 28th Feb 2012 09:03
Mnemonic

The fault is caused by Line 869 "LM Set Shadow Power shadowstr#" - rem it out

Ref the other stuff:
Line 18 demoversion=1 - change to 0
Line 401 & 438 - rem out the OPEN DIALOG / SAVE DIALOG calls or fix as per the advice you've already got.

This should give you compilable source code.

I'm on Win7 64 bit.

Habits can get you into trouble sometimes (unless you are a nun....)

Login to post a reply

Server time is: 2026-07-10 08:27:20
Your offset time is: 2026-07-10 08:27:20