PDA

View Full Version : Design of a new tool



Myrddraal
06-25-2004, 16:14
I have to make a short project in Delphi. It can't be too big, so I though I'd make a modding tool.

The idea would be to make starpos creation/editing as easy as it gets. This program would ask you questions and u would answer them, and it would generate the startpos from this.

Things like setting dates are so easy that they hardly need an editor. This is why this will only be a small part of the program. The main part of the program would be setting up new campmaps. The program would use the files generated by LMM4, to make an easy interface in which you could generate border info, province attributes, building and unit placement.

I've just started doing the basic functions like setting dates etc.

Unfortunately I'm not very experienced at using delphi, so I may have quite a few questions. If there are any experienced delphi users out there, ur help would be greatly appreciated.

I'll be uploading screenshots so you can get the basic idea.

Proposed name: DwarfEditor (to double the number of midget editors around http://www.totalwar.org/forum/non-cgi/emoticons/wink.gif )

tombom
06-25-2004, 20:46
I'm okay at delphi. This sounds like a great idea.

Kaatar
06-25-2004, 23:20
Sounds like a good idea. I'm curious, though. How are you going to tackle the SetShieldImage bit?

I'm good in VB and okay in java. Hopefully one of them will resemble yours.

tombom
06-26-2004, 06:04
Sadly, neither Vb or Java are like Delphi, as it's just a Pascal variant. And I have realised that I am terrible at both Pascal and delphi.

Myrddraal
06-26-2004, 12:53
Oh well, so I suppose its pointless me asking how you can convert a string into a variable?


Quote[/b] ]How are you going to tackle the SetShieldImage bit

If I don't think of anything else, then you'll just type in the name of the shield. I'll think about it more when I get to it.


A little more info on setting the border info/ province attributs. I was thinking that it would go something like this.

The program would load Ref_Identifiers.bmp (generated by LMM) and would use the co-ordinates from script.txt to place buttons on each province with the province name. You click on each province, and to the right of the map, the stats for that province appear. This is where you would edit architechture/terrain/units and buildings etc.

What do you think?

tombom
06-26-2004, 13:14
Quote[/b] (Myrddraal @ June 26 2004,12:53)]Oh well, so I suppose its pointless me asking how you can convert a string into a variable?
That I might have been able to answer except that my installation of Delphi has disappeared and I can't think of it off the top of my head.

Maul
06-28-2004, 16:24
Quote[/b] (Myrddraal @ June 26 2004,13:53)]Oh well, so I suppose its pointless me asking how you can convert a string into a variable?
Do you mean: How to read text form text file and convert it into some sort of data structures which can be easily manipulated by program?

Cheers
Maul

tombom
06-28-2004, 21:21
Quote[/b] (Maul @ June 28 2004,16:24)]
Quote[/b] (Myrddraal @ June 26 2004,13:53)]Oh well, so I suppose its pointless me asking how you can convert a string into a variable?
Do you mean: How to read text form text file and convert it into some sort of data structures which can be easily manipulated by program?

Cheers
Maul
Come to think of it, that doesn't actually make all that much sense. I am especially terrible at parsing things in any language so I can't answer your question. Maybe Maul can help though.

Myrddraal
06-29-2004, 17:31
I want to write an integer value to a memo. When I give the command, it say something like 'Invalid types: String, Integer.

I suppose there is a way to convert string to integer and vice versa.

Maul
06-30-2004, 11:10
function StrToInt(const S: string): Integer;
and
function IntToStr(Value: Integer): string;

These two functions should do the trick.


Cheers
Maul

Myrddraal
06-30-2004, 16:19
Thx a lot Maul, thats just what I needed http://www.totalwar.org/forum/non-cgi/emoticons/gc-smile.gif