Trying to write an alt. implementation of VS Datamodel
Posted: Fri May 16, 2008 10:52 pm
Well dono were else to write it.
I just want to inform you that I work on a new DataModell. My Aim is to easyly provide DataAPI to Python and to the navcomputer (Which will be a rewrite and a dataAPI in Cockpit - I think Navcomp needs badly a rewrite. The Comments are wrote like theyx were found on the toilet.)
I don't know if That work or will be anything useful, but keeps me doing something even if it never finds it way into VS it helps me to understand what I want and what VS already has.
My Idea goes as the following.
I think in three Layers.
Base - Data acquiring
Data - Data Administration
Front - Well Gui Engine and Game Stuff.
Base Classes (Like LoadXML) will load the data from a specific source, if it is our XML file, some wired Database or the Net should be defined by the class that gets called. It delivers to (or sends from ) the Data layer.
The Datalayer will provide the Information to whatever layer request information, and it administrates the Data itself. I am not sure if it should know about actions too. I tend to put that some where else. Rather use the place for sanity checks. And trying not to overbload the Code. (Anything longer then 500 lines is impossible to maintain. Old saying in Datawarehouse Construction )
As Baseclass I only see to it that the XML Data can be loaded as before.
For starting purposes I only will implement Galaxy structures ( Sectors, Planets and other stuff like that.) Ofc the design I work will only be changeing things in the code. When I do things right I think no changes to the actual Game data needs to be made. (Thats the aim!)
I actually started Codeing already. (just to give it a go since I am realy fond of the Idea, and do not want to wait until I understand every bid of the code.)
I hope you guys are willing to help me a bit in planing things. This is (exciteingly) my first OO aproach ever and I am not sure about some consequences of this. At least some sources are scaring me like hell with class design is directly liked with experience and stuff (I.e. How it is best to sell the Data to the engine I am realy unsure)
If the plan works out. We get a flexible and Easy way to handle The game Data. And we will be hopefully be able to easly export or use the API wherever we want to.
Well I will post more soon. When I am a bit further in uhh rampageing around. (That will be fun!!! =D)
I just want to inform you that I work on a new DataModell. My Aim is to easyly provide DataAPI to Python and to the navcomputer (Which will be a rewrite and a dataAPI in Cockpit - I think Navcomp needs badly a rewrite. The Comments are wrote like theyx were found on the toilet.)
I don't know if That work or will be anything useful, but keeps me doing something even if it never finds it way into VS it helps me to understand what I want and what VS already has.
My Idea goes as the following.
I think in three Layers.
Base - Data acquiring
Data - Data Administration
Front - Well Gui Engine and Game Stuff.
Base Classes (Like LoadXML) will load the data from a specific source, if it is our XML file, some wired Database or the Net should be defined by the class that gets called. It delivers to (or sends from ) the Data layer.
The Datalayer will provide the Information to whatever layer request information, and it administrates the Data itself. I am not sure if it should know about actions too. I tend to put that some where else. Rather use the place for sanity checks. And trying not to overbload the Code. (Anything longer then 500 lines is impossible to maintain. Old saying in Datawarehouse Construction )
As Baseclass I only see to it that the XML Data can be loaded as before.
For starting purposes I only will implement Galaxy structures ( Sectors, Planets and other stuff like that.) Ofc the design I work will only be changeing things in the code. When I do things right I think no changes to the actual Game data needs to be made. (Thats the aim!)
I actually started Codeing already. (just to give it a go since I am realy fond of the Idea, and do not want to wait until I understand every bid of the code.)
I hope you guys are willing to help me a bit in planing things. This is (exciteingly) my first OO aproach ever and I am not sure about some consequences of this. At least some sources are scaring me like hell with class design is directly liked with experience and stuff (I.e. How it is best to sell the Data to the engine I am realy unsure)
If the plan works out. We get a flexible and Easy way to handle The game Data. And we will be hopefully be able to easly export or use the API wherever we want to.
Well I will post more soon. When I am a bit further in uhh rampageing around. (That will be fun!!! =D)