Doslo je do pogreske kod spajanja
MODDING DATABASES |
|
A lot of parameters in SPG2 is handled through databases. Database definition is saved as a *.wdb (Whale Database) file, while individual tables are *.wdt (Whale Data Table) files. Tables can be either in text or binary format. Text format tables have an initial "txt", while binary tables have "bin" in the header. Tables (text format) can be edited with Notepad++, OpenOffice Calc or Microsoft Excel. They consist of a header with the basic info and data sorted in rows and columns. Columns are separated by tab. Due to the nature of database tables, using Excel or Calc is advised. It gives a much better overview of the entire table than you could get in a plain text editor. Simply select the entire contents of a *.wdt file and copy/paste it into Excel or Calc. Make the wanted modifications and then copy/paste it back into *.wdt file. Remove the empty line usually added by Notepad++ automatically. To prevent Excel or Calc from doing any auto-correction and changing existing data on copy/paste, please follow this procedure:
TABLES(Click for details)
ACCESSING THROUGH SCRIPTSData stored in a table can be accessed via scripts. To do that use the function explained below. Goal is to get price of the Tesla weapon from the LightWeapons table.
GAME ENGINEIC_Base class handles database interaction in the game engine. Here's a list of important functions:
|
|
Copyright © 2005-2019 Intercorona d.o.o. Intercorona, LGM Games, Starpoint Gemini and Whale Engine are trademarks of Intercorona d.o.o. All Rights Reserved. |