This is so easy and basic, yet it doesent work...
I first made a game in BlitzBasic but now i wanna improve it in BlitzPlus.
This has caused many different problem, my game just couldnt be runned by BlitzPlus.
I am writing this thread cause i know no other way out.
Here is the deal:
I have a mapeditor that i have programmed myself and when it saves the map it lookes like this:
Dim map(800,100,2)
Function Saveing(ThisFile$)
Local Number
spara = WriteFile("..\..\data\"+ ThisFile$ + ".tlv")
For x = 1 To 800
For y = 1 To 100
For z = 1 To 2
WriteInt(spara,map(x,y,z))
Next
Next
Next
CloseFile(spara)
End Function
Now when its beeing loaded it looks like this:
ladda = ReadFile(ChoosenFile$)
For x = 1 To 800
For y = 1 To 100
For z = 1 To 2
map(x,y,z) = ReadInt(ladda)
Next
Next
Next
This is so easy! I know how to do this and it worked in BlitzBasic but now all i get is that "Array index out of bound"
And this is just one of many problems i've had since i changed IDE
Thanks
I first made a game in BlitzBasic but now i wanna improve it in BlitzPlus.
This has caused many different problem, my game just couldnt be runned by BlitzPlus.
I am writing this thread cause i know no other way out.
Here is the deal:
I have a mapeditor that i have programmed myself and when it saves the map it lookes like this:
Dim map(800,100,2)
Function Saveing(ThisFile$)
Local Number
spara = WriteFile("..\..\data\"+ ThisFile$ + ".tlv")
For x = 1 To 800
For y = 1 To 100
For z = 1 To 2
WriteInt(spara,map(x,y,z))
Next
Next
Next
CloseFile(spara)
End Function
Now when its beeing loaded it looks like this:
ladda = ReadFile(ChoosenFile$)
For x = 1 To 800
For y = 1 To 100
For z = 1 To 2
map(x,y,z) = ReadInt(ladda)
Next
Next
Next
This is so easy! I know how to do this and it worked in BlitzBasic but now all i get is that "Array index out of bound"
And this is just one of many problems i've had since i changed IDE
Thanks