Final Fantasy Hacktics

General => The Lounge => Topic started by: Xifanie on October 25, 2007, 08:41:14 pm

Title: Delphi
Post by: Xifanie on October 25, 2007, 08:41:14 pm
[edit]
Title:
Post by: Argg0 on October 26, 2007, 12:38:36 am
VB sucks.

If you want an easy language, go Delphi (aka object pascal).

If you want a descent language go either: C#, C++ or Java.

-_-
Title:
Post by: karsten on October 26, 2007, 02:28:21 am
Quote from: "Argg0"VB sucks.

If you want an easy language, go Delphi (aka object pascal).

If you want a descent language go either: C#, C++ or Java.

-_-

ridiculous. visual basic works wonders and it's more intuitive than c. and java... come on please.

for what concern me, perfect choice zodiac.
Title:
Post by: Argg0 on October 26, 2007, 11:50:54 am
I never said C or Java were easier than VB... I said Delphi is.
Title:
Post by: Xifanie on October 28, 2007, 09:18:46 am
Well, to make it short, I lost my VB6 CD.

Then I had to choose 120mb Delphi or 680mb VB6.

After 3 days of dling Delphi here I am.

I read a lot about Delphi and they all said it was easier than VB if with any Pascal experience. Else it was harder.

Well, since I never really liked the fact that you could see the source code with notepad of a compiled VB program, I'll do my best to learn Delphi.  :wink:
Title:
Post by: Xifanie on October 28, 2007, 09:19:28 am
So, in other words it starts...

NOW!
Title:
Post by: Argg0 on October 28, 2007, 11:12:21 am
If you need any help/have doubts, feel free to ask.

I'm not experienced in Delphi as I'm in C++, but I think I'll be able to help.

Are you using Borland?

Not sure about other compilation programs, but, in Borland, Ctrl Space is your friend.
Title:
Post by: Xifanie on October 28, 2007, 12:41:51 pm
What you could C++ this whole time and never volunteered to make a program? <_<'

内乱罪!!

Yeah, Borland. Anyone ever created any other Delphi compiler?
Title:
Post by: Argg0 on October 28, 2007, 04:46:59 pm
I only findout you needed help coding a while ago...

And I did offer help, more than once.

All offers got ignored...
Title:
Post by: Xifanie on October 28, 2007, 05:05:52 pm
Well, I thought you said you weren't very familiar with hex editing...

And as for coding it's the first time I read that you can code.

Not to mention that I don't want anyone to:
Patch file, Import in CD mage, then load Savestate.
rofl.

Anyway it's too late now. Coding is a useful skill and I already started.

And I have to say Delphi 'feels' much more reliable than VB. So I don,t regret my choice.
Title:
Post by: Argg0 on October 28, 2007, 05:15:15 pm
My univercity is about Informatic (it's not CS though), more focused on programming.

I've never had a reason to go on hex things... If I actually knew what you guys need, I could help, go after knowladge.

But I don't know what you need exactly. Without knowing what you need exactly, I can't help.
Title:
Post by: Xifanie on October 28, 2007, 05:20:30 pm
Quote from: "Argg0"Without knowing what you need exactly, I can't help.

I'm not sure myself. XD
Title:
Post by: Argg0 on October 28, 2007, 06:24:12 pm
Yeah, that's common.

So common that I have two subjects just for this problem (user not knowing what he wants, finding out what he wants).

Too bad that I suck at it and almost failed on the first one and might fail on the second (still on it).
Title:
Post by: Xifanie on October 28, 2007, 08:13:58 pm
Huh? Ã"_o

I don't follow you anymore
Title:
Post by: Argg0 on October 28, 2007, 10:06:23 pm
The client (who wants the software) not knowing what he wants.

That's common.
Title:
Post by: Xifanie on October 28, 2007, 10:33:38 pm
Ah, lol  :lol:
Title:
Post by: Xifanie on October 28, 2007, 11:53:25 pm
Hey, I do have one question.

Private/Public what's the difference? Is is that you can only use a define variable in the current function if it's private? I never really got it in my Java class. I kept making everything public.
Title:
Post by: karsten on October 29, 2007, 07:23:21 am
Quote from: "Argg0"I only findout you needed help coding a while ago...

And I did offer help, more than once.

All offers got ignored...

in answered you twice or trice and never heard anything from you  :shock:
Title:
Post by: Argg0 on October 29, 2007, 09:56:21 am
I found the info rather vague when you said... >_>

Don't remember why I didn't reply. I think I stoped caring or something...

Private means that only the class that possess it can alter/use that thing.
Public can be changed by stuff outside the class.

Basically, it's a security thing. If you don't want to accidently mess up use private.

If you make everything public and take care while coding, there will be no difference.
Title:
Post by: Xifanie on October 30, 2007, 06:50:15 am
Hadn't enough time yesterday for some Delphi or even to answer most topic, so just wanted to say thanks.

XD
Title:
Post by: Xifanie on November 02, 2007, 06:32:53 pm
Going back at it. Maybe I'll be able to start coding Rad's Toolkit this week-end?
Title:
Post by: Xifanie on November 03, 2007, 09:57:15 pm
Crap... what's the easiest way to load an entire file into memory & manage it?

I can only store about 100kb in an array of bytes. That sucks.  :?

And I searched but couldn't find anything about how I could let the user click a button, choose its folder with FFT files to modify and click OK. All files would then have the correct path to load them. (sorry I have no idea how it's called in English, in fact, my XP is in French >_>')

I was expecting this to be easier.  :P
Title:
Post by: Argg0 on November 04, 2007, 01:07:49 am
What Delphi compiler are you using?

Borland?

If so, under the system tab there is lots of Dialogs, OpenDialog is what you want.

It brings the usual windows Open box. It returns a string with the file name. So you go like...

if (OpenDialog1.execute) then
    Memo1.Lines.LoadFromFile(OpenDialog1.filename);

Would throw the file text on the Memo1.

About the bytes problem... I'm not sure. I don't know variable limitations and such on Delphi (like I said before, I use C++ >_<)...
Title:
Post by: Xifanie on November 04, 2007, 05:01:50 pm
Still can't get the SelectDirectory function to work...

Well, I started coding the program and all I've done until now is loading all the proper data into separate arrays. That took me more than half an hour dammit. :S

Look how newbie my source looks:  :lol:

var
   FilePath : String;
   SCUS     : File;
   Ab1      : array[0..4095] of byte;
   Ab2      : array[0..5152] of byte;
   ASIte    : array[0..15] of byte;
   ASThr    : array[0..11] of byte;
   ASJmp    : array[0..23] of byte;
   ASChr    : array[0..15] of byte;
   ASMSk    : array[0..7] of byte;
   ASRea    : array[0..87] of byte;
   Job      : array[0..7679] of byte;
   IteIte   : array[0..3071] of byte;
   IteWep   : array[0..1023] of byte;
   IteShl   : array[0..31] of byte;
   IteArm   : array[0..127] of byte;
   IteAcc   : array[0..63] of byte;
   IteChm   : array[0..47] of byte;
   InS      : array[0..767] of byte;
   SIA      : array[0..1999] of byte;
   Sks      : array[0..4399] of byte;
   MSk      : array[0..239] of byte;
   AEm      : array[0..223] of byte;
   StA      : array[0..639] of byte;
   Poa      : array[0..95] of byte;
   JbR      : array[0..189] of byte;
   JLv      : array[0..17] of byte;
 begin
   FilePath := 'C:\SCUS_942.21';
   AssignFile(SCUS, FilePath);
   FileMode := fmOpenRead;
   Reset(SCUS, 1);

   Seek(SCUS, $4F3F0);
   BlockRead(SCUS, Ab1, 4096);

   Seek(SCUS, $503F0);
   BlockRead(SCUS, Ab2, 5152);

   Seek(SCUS, $51810);
   BlockRead(SCUS, ASIte, 16);

   Seek(SCUS, $51820);
   BlockRead(SCUS, ASThr, 12);

   Seek(SCUS, $5182C);
   BlockRead(SCUS, ASJmp, 24);

   Seek(SCUS, $51844);
   BlockRead(SCUS, ASChr, 16);

   Seek(SCUS, $51854);
   BlockRead(SCUS, ASMSk, 8);

   Seek(SCUS, $5185C);
   BlockRead(SCUS, ASRea, 88);

   Seek(SCUS, $518B8);
   BlockRead(SCUS, Job, 7680);

   Seek(SCUS, $536B8);
   BlockRead(SCUS, IteIte, 3072);

   Seek(SCUS, $542B8);
   BlockRead(SCUS, IteWep, 1024);

   Seek(SCUS, $546B8);
   BlockRead(SCUS, IteShl, 32);

   Seek(SCUS, $546D8);
   BlockRead(SCUS, IteArm, 128);

   Seek(SCUS, $54758);
   BlockRead(SCUS, IteAcc, 64);

   Seek(SCUS, $54798);
   BlockRead(SCUS, IteChm, 48);

   Seek(SCUS, $547C4);
   BlockRead(SCUS, InS, 768);

   Seek(SCUS, $54AC4);
   BlockRead(SCUS, SIA, 2000);

   Seek(SCUS, $55294);
   BlockRead(SCUS, Sks, 4400);

   Seek(SCUS, $563C4);
   BlockRead(SCUS, MSk, 240);

   Seek(SCUS, $564B4);
   BlockRead(SCUS, AEm, 224);

   Seek(SCUS, $565E4);
   BlockRead(SCUS, StA, 640);

   Seek(SCUS, $56864);
   BlockRead(SCUS, Poa, 96);

   Seek(SCUS, $568C4);
   BlockRead(SCUS, JbR, 190);

   Seek(SCUS, $56982);
   BlockRead(SCUS, JLv, 18);
 end;
Title:
Post by: Xifanie on November 04, 2007, 06:45:36 pm
Man, I searched and searched but I still have no idea of how to create a frame after pressing a button... I don't want to do all my work in a single window. Ã"_o

Can you help?  :?
Title:
Post by: Argg0 on November 05, 2007, 10:23:03 am
I ask again... What compiler are you using?
Title:
Post by: Xifanie on November 05, 2007, 04:16:35 pm
Borland
Title:
Post by: Xifanie on November 07, 2007, 08:13:46 pm
Found it. Well, I know that I'll have to use ShowModal for my purposes. I'm not sure as how to use it though.
Title:
Post by: karsten on November 08, 2007, 02:26:21 am
how are progresses with this?
Title:
Post by: Xifanie on November 08, 2007, 06:44:41 am
Mmmm, slow.  :)

I almost got everything planed except for my font editor. Same for the text editor since I want to make a file the user can edits to sets converting values at loading/saving, that way punctuation marks could be converted, just like that).

Don't push me, I'm a newb at programming. Almost all my experience comes from SC Triggers; XD.
Title:
Post by: karsten on November 09, 2007, 02:22:07 am
Quote from: "Zodiac"Mmmm, slow.  :D i was just wondering when i'll have to search for my PSX again ;) as long as the only patching way is through excel i have no chances...
Title:
Post by: Xifanie on November 09, 2007, 06:38:41 am
Yeah, I know.

I'm currently designing, and I never thought that alone would take this much time.

After that, it's text editing, then the saving function and it should be up.

I want to do the text editing right now as the users will be able to directly modify the ability name and quote directly from the Ability Editing form. I don't want to do something that I'll remove afterwards when I'd implement the text editing.
Title:
Post by: Argg0 on November 13, 2007, 02:39:19 pm
Sorry for not replying for a while... I've been pretty busy.

If you are having trouble with codes, you can send them to me and I'll take a look (commenting them will help, also using good variable names).

ps: Don't do that in French or I won't be able to help >_>
Title:
Post by: Xifanie on November 13, 2007, 04:26:58 pm
Huh... I never even take notes in french.French is a good language to chat, write texts & talk, but other than that it's horrible. Especially french translated games; they make me want to puke.
Title:
Post by: karsten on November 19, 2007, 04:51:17 am
status?
Title:
Post by: Xifanie on November 19, 2007, 07:31:48 am
Bad; I don't feel like coding these days.
Title:
Post by: karsten on November 19, 2007, 08:36:53 am
Quote from: "Zodiac"Bad; I don't feel like coding these days.

:D i see. by the way i noticed that you are complaining alot about the hosting... can you explain me in detail what is the problem? maybe i can work something out.
Title:
Post by: Xifanie on November 19, 2007, 04:28:16 pm
AH, first there is auritech.eu and this one: byethost.

The problem with your site is its location. Loading the site from the US/Canada is extremely long. I did speed tests and it's response times are 5+ seconds while Google is 0.14 sec.

As for byethost, it very often happens to me that:
- The page doesn't load completely (images missing)
- MySQL database isn't updated properly when I view a page to switch the 'read/unread' flag.
- No response at all sometimes, then I hit refresh and it's OK.
- The server is too often down IMO.
Title:
Post by: karsten on November 20, 2007, 02:33:04 am
Quote from: "Zodiac"AH, first there is auritech.eu and this one: byethost.

The problem with your site is its location. Loading the site from the US/Canada is extremely long. I did speed tests and it's response times are 5+ seconds while Google is 0.14 sec.

As for byethost, it very often happens to me that:
- The page doesn't load completely (images missing)
- MySQL database isn't updated properly when I view a page to switch the 'read/unread' flag.
- No response at all sometimes, then I hit refresh and it's OK.
- The server is too often down IMO.

i see. anyway at least from here this webpage was always a lightning... damn fast at least charges in less then a sec.

for what concerns the forum it seems to have slowed down a little lately