Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2005:
[Freeciv-Dev] Adding Things To the Game
Home

[Freeciv-Dev] Adding Things To the Game

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Adding Things To the Game
From: YaChu Yang <yyan050@xxxxxxxxxxxxxxxxx>
Date: Mon, 22 Aug 2005 10:30:22 +1200

Hi,

I'm currently looking at the FreeCiv game code. I'm a real novice in C/C++, and
this might sound like a stupid question but....

I've spent hours trying to add a new tab with buttons, labels etc. in the city
"overview" window (the one that gives city overview, worklist, CMA, happiness
etc. for each city) and I've only managed to add a button in the bottom panel
with the 'Close', 'Rename' etc. and crash the game when I try creating a new
tab. I've tried copying certain code that creates the 'City Overview' tab, but
that crashed the game, and I've also increase the variable that indicates how
many tabs there are to 7, and it crashed on me. I've tried everything that I
could think of in the citydlg.c file and all it's done is crash and burn on me
:(

I've also made a few C files for our GA, and we were wondering if I wanted to
have my files as part of the game what changes would I need to make so that my
code compiles and works with the rest of the game. Currently I hope to use my
files with the civclient.c file.


Any hints you could give me would be greatly appreciated.




--
Cheers
YaChu



[Prev in Thread] Current Thread [Next in Thread]