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 / Help with the compiling

Author
Message
7h3k1d
15
Years of Service
User Offline
Joined: 25th Dec 2010
Location:
Posted: 29th Dec 2010 21:42
i tried to make a simple map using 3D World Studio and I already converted it to .x file. When i want to load it to DBPro and i tried to compile, it showed no error. But when i run it, there was a warning said that my exe file has encountered a problem and need to be closed. (I already put all the files and textures in one folder). Is it because my code or probably because the map that i made was too big to be compiled?
this is my code..


i'm a newbie...
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 29th Dec 2010 22:59
Quote: "Is it because my code or probably because the map that i made was too big to be compiled?"


No idea. Could you post the model?
Neuro Fuzzy
19
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 29th Dec 2010 23:21
or could you post the error?

The model has to be in the same file as the executable. So if you created a project, put your models in the same folder as the .dbpro and .dba files. Otherwise, the source code is compiled to a temporary folder, so you'll need to find that, and put your models there.

7h3k1d
15
Years of Service
User Offline
Joined: 25th Dec 2010
Location:
Posted: 30th Dec 2010 07:09
Quote: "The model has to be in the same file as the executable. So if you created a project, put your models in the same folder as the .dbpro and .dba files. Otherwise, the source code is compiled to a temporary folder, so you'll need to find that, and put your models there.
"

I actually already did that, but the problem is still the same...
well, thanks anyway... it probably because my PC then..

i'm a newbie...
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 30th Dec 2010 13:41
Quote: " it probably because my PC then"


Not necessarily.

In your first post you asked:

Quote: "Is it because my code or probably because the map that i made was too big to be compiled?"


There's nothing wrong with your code so it should compile on your machine - compiling has nothing to do with the X file. On the other hand the compiled program might fail to run if there is something wrong with the X file. When you say it won't compile what error messages do you get in the DBPro editor or when you run the program? Are you sure it's not compiling or do you mean it's not running/executing? There's a big difference between the two.
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 31st Dec 2010 11:40
Objects don't compile so it shouldn't cause the "exe file has encountered a problem" error. Try without loading this object and see if the program runs.

My signature is NOT a moderator plaything! Stop changing it!
7h3k1d
15
Years of Service
User Offline
Joined: 25th Dec 2010
Location:
Posted: 1st Jan 2011 09:56
i'm sorry if i made a mistake in the question. I tried again and it's just like what Mobiius said. The error said the exe file has encountered a problem. it is compiled, but it won't run. Here's the thing, the map that i made is actually a combination of a few objects that i made separately. When i only insert one of those objects, it will run successfully. However when i want to make a complete map, which means i combine all of those objects, the exe file won't run. So, what is the problem with that conditions?

i'm a newbie...
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 1st Jan 2011 12:44 Edited at: 1st Jan 2011 12:44
Quote: "which means i combine all of those objects"


Perhaps the final object is too big for DBPro? I think there's a limit of something like 65536 vertices (or polys?) for a single limb. Have you tried loading all the objects together as separate objects or as separate limbs of one object?
7h3k1d
15
Years of Service
User Offline
Joined: 25th Dec 2010
Location:
Posted: 1st Jan 2011 15:58
Quote: "Perhaps the final object is too big for DBPro? I think there's a limit of something like 65536 vertices (or polys?) for a single limb"

really? wow, thanks for the info. I'll try to use your method then. Thank you very much for the help..

i'm a newbie...
7h3k1d
15
Years of Service
User Offline
Joined: 25th Dec 2010
Location:
Posted: 1st Jan 2011 20:23
hey, i already tried to use your method. I decrease the size of my final object and it runs successfully however the object seems can't be positioned even after i use "position object". Is this a problem with my .x files then?


and i already put my final object in this rar folder

i'm a newbie...
Green Gandalf
VIP Member
21
Years of Service
User Offline
Joined: 3rd Jan 2005
Playing: Malevolence:Sword of Ahkranox, Skyrim, Civ6.
Posted: 1st Jan 2011 23:01
Quote: "Is this a problem with my .x files then?"


Probably. I had to position it with Y about -1200 before the camera could see it.

Works fine otherwise.
7h3k1d
15
Years of Service
User Offline
Joined: 25th Dec 2010
Location:
Posted: 2nd Jan 2011 16:01
oh, ok then.. thank you very much, Green Gandalf... i'll try to fix my .x files then.. thanks again..

i'm a newbie...

Login to post a reply

Server time is: 2026-07-18 07:32:38
Your offset time is: 2026-07-18 07:32:38