This is strange. Really strange. I started the very first chunk of a game I'm working on. I have been able to test it up to this point. However, just today, whenever I hit "run", it compiles, but nothing happens. No errors, just no window. I can put errors into the code, and the errors are located and highlighted just fine. I've tested other codes, they all run perfectly fine. I tried moving the code and images to a new directory. Nope, code still doesn't run. Tried switching from windowed mode. Mm-mm. Tried switching display modes. Nothing. Searched the whole thing for "end" somewhere, thought maybe the code was killing itself. No. I'm stumped at this point, and am in desperate need of help. here is the code: (note: a lot of this is inconsequential, and just stuff I plan to use later.)
sync on
sync rate 60
set display mode 1920,1080,16
set window off
autocam off
position camera 0,20,0
point camera 0,0,0
backdrop on
color backdrop rgb(0,0,0)
randomize timer()
set global collision on
`load image "australia_green.bmp",1
`load image "australia_red.bmp",2
`make object plain 1,10,10
`texture object 1,1
`xrotate object 1,270
`make object plain 2,10,10
`texture object 2,2
`xrotate object 2,270
`position object 2,0,.1,0
`set alpha mapping on 2,0
base_infectivity#=10
base_lethality#=3
base_noticeability#=0
base_complexity#=0
dim climate#(8)
`1 -- heat
`2 -- cold
`3 -- moist
`4 -- dry
`5 -- rich
`6 -- poor
`7 -- urban
`8 -- rural
`the above are all numbers from 1 to 100, 50 being average, below being hindered, above being preferred
day = 1
daytimer = 0
dim totalpop(1)
dim infected(1)
dim healthy(1)
dim dead(1)
dim newinfects(1)
dim newdead(1)
dim randomness#(1)
dim randone#(1)
dim alpha#(1)
dim totalpop#(1)
dim infected#(1)
dim healthy#(1)
dim dead#(1)
dim temp(1)
dim moist(1)
dim wealth(1)
dim density(1)
dim infectivity#(1)
dim lethality#(1)
dim noticeability#(1)
dim complexity#(1)
`stats of countries, from 1 to 5
`5 -- hot, humid, rich, dense
`4 -- warm, moist, well-off, populated
`3 -- mild, fair, modest, distributed
`2 -- cool, dry, meager, dispersed
`1 -- cold, arid, poor, sparse
`australia:
temp(1) = 5
moist(1) = 2
wealth(1) = 4
density(1) = 3
totalpop(1) = 22680000
healthy(1) = totalpop(1) - 1
infected(1) = 1
do
gosub daycycle
gosub handleplanet
gosub statadjustments
sync
loop
daycycle:
if upkey()=1
daytimer = daytimer + 3
endif
daytimer = daytimer + 1
if daytimer >=60
daytimer = 0
day = day + 1
randomness#(1)=rnd(40)
randomness#(1) = (randomness#(1) + 80) * .01
randone#(1) = rnd(100)
if (randone#(1) + (infected(1) * 5 * (.1 * infectivity#(1))))>=85
randone#(1)=1
else
randone#(1)=0
endif
infected(1) = infected(1) - (infected(1) * lethality#(1) * randomness(1))
dead(1) = dead(1) + (infected(1) * lethality#(1) * randomness(1))
newinfects(1) = ( (infected(1) ^ .9) * infectivity#(1) * .01 * randomness#(1) ) + randone#(1)
if healthy(1)>=newinfects(1)
healthy(1) = healthy(1) - newinfects(1)
infected(1) = infected(1) + newinfects(1)
else
newinfects(1) = healthy(1)
healthy(1) = 0
infected(1) = infected(1) + newinfects(1)
endif
endif
return
handleplanet:
set text size 20
set cursor 20,20
print "day:"
set cursor 155,20
print day
set cursor 20,200
print "healthy:"
set cursor 205,200
print healthy(1)
set cursor 20,250
print "infected:"
set cursor 205,250
print infected(1)
set cursor 20,500
print alpha#(1)
set cursor 20,300
print "dead:"
set cursor 205,300
print dead(1)
infected#(1) = infected(1)
totalpop#(1) = totalpop(1)
healthy#(1) = healthy(1)
alpha#(1) = ((infected#(1) / totalpop#(1)) * 100)
`alpha#(1) = alpha#(1)
`set alpha mapping on 2,alpha#(1)
alpha#(1) = ((healthy#(1) / totalpop#(1)) * 100)
`set alpha mapping on 1,alpha#(1)
return
statadjustments:
lethality#(1) = base_lethality#
infectivity#(1) = base_infectivity#
if healthy(1) < infected(1)
infectivity#(1) = infectivity#(1) - (infectivity#(1) * ((infected(1) - healthy(1)) / (totalpop(1) * 2)))
endif
return
...