I was not making use of new so I will try shortly. Currently here's what I am doing. This is in among all my other variable definitions none of which use new
:-
//struct definition
struct planet_data
{
__int8 p_octant;
__int8 p_sector;
__int8 p_race;
__int8 p_class;
__int8 p_techno;
__int8 p_civtype;
__int8 p_sysno;
__int8 p_sundist;
__int8 p_orbit
TCHAR p_name[20];
} planets[2000];
UPDATE: Yes, that works fine now as far as allocating the structs but now I cannot access the structs from functions as they are now created in PF's init function???. I am not understanding what PF requires of me obviously.
I tried defining the struct as follows:-
after the struct is defined I added
planet_data *planets and in the PF init I put
planet_data *planets = new planet_data[2000];
This builds but the game crashes so I'm still doing it wrong
I will transfer to the PocketFrog board now as this is not a general problem anymore. I can't define the variable using new within the only place in PF where I can define variables so the whole game can access them ???