ok lets revamp this a bit
my problem i will show with the actual code i am using so that i can get some help
this is a bit from my main file
REM Project: SpaceSim1
REM Created: 30/01/2009 5:17:06 PM
REM
REM ***** Main Source File *****
REM
#include SystemsAndPlanets.dba
sync rate 60
sync on
autocam off
gosub SetupGlobals
gosub SetupGame
gosub SetupSpace
InSystem=1
REM ***** MAIN PROCESS START *****
do
gosub PrintStats
gosub HandleEnvironment
gosub HandlePlayer
sync
loop
end
REM ***** MAIN PROCESS END *****
please note that there is many more lines than that but i dont want to post it all, now onto the second file
REM *** Include File: SystemsAndPlanets.dba ***
REM Created: 1/02/2009 12:32:10 AM
REM
REM Included in Project: C:\Program Files\The Game Creators\Dark Basic Professional Trial\Projects\SpaceSim1\SpaceSim1.dbpro
REM
SetupSpace:
gosub SetupStars
gosub SetupSystems
gosub Calls
return
Calls:
gosub MakeStars
gosub MakePlanets
gosub MakeMoons
return
MakeStars:
make object sphere 1,35
position object 1,0,0,40
return
please note i have left out heaps of the code and if you need anything else just say so.
I dont know whats wrong but whenever i try to do anything in the subs in the include file it wont do anything. I think it might have something to do with the amount of gosubs there are (i hope its not).
Any help is appreciated...