KingAlbert
Chieftain
I am thinking of writting a tool for Civ3 C3C. The tool should enable the user to keep a history-book of his game (style 1100 AD attacked greek phalanx, captured Athens...)
The user would click on preset events which would add the appropriate text to the history book.
I am analysing all civ3 - text files in order to import all the data into the tool, like unit stats and encyclopedia entries. However some data still eludes me.
It is probable that Firaxis hard-coded the data into the game but I need to know for sure.
The data that I need is:
1/ where are the nation names and noun (netherlands, dutch ...) stored?
2/ where are the unit data like attack, defense and movement stored?
I know that the editor can read this data but where is it stored.
for the interested: here is a function in VB.NET that retrieves a list of races from the encyclopedia:
Function ListCivs()
'description: list all the different civilizations based on
'the civilopedia
Dim iList As New ArrayList
Dim filenum As Integer = FreeFile()
Dim templine As String
Dim searchstr As String
FileOpen(filenum, CivStr, OpenMode.Input)
Do Until EOF(filenum)
templine = LineInput(filenum)
searchstr = Microsoft.VisualBasic.Left(templine, 6)
If searchstr = "#RACE_" Then
iList.Add(Microsoft.VisualBasic.Right(templine, Len(templine) - InStr(templine, "_")))
End If
Loop
The user would click on preset events which would add the appropriate text to the history book.
I am analysing all civ3 - text files in order to import all the data into the tool, like unit stats and encyclopedia entries. However some data still eludes me.
It is probable that Firaxis hard-coded the data into the game but I need to know for sure.
The data that I need is:
1/ where are the nation names and noun (netherlands, dutch ...) stored?
2/ where are the unit data like attack, defense and movement stored?
I know that the editor can read this data but where is it stored.
for the interested: here is a function in VB.NET that retrieves a list of races from the encyclopedia:
Function ListCivs()
'description: list all the different civilizations based on
'the civilopedia
Dim iList As New ArrayList
Dim filenum As Integer = FreeFile()
Dim templine As String
Dim searchstr As String
FileOpen(filenum, CivStr, OpenMode.Input)
Do Until EOF(filenum)
templine = LineInput(filenum)
searchstr = Microsoft.VisualBasic.Left(templine, 6)
If searchstr = "#RACE_" Then
iList.Add(Microsoft.VisualBasic.Right(templine, Len(templine) - InStr(templine, "_")))
End If
Loop