• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

Item Code Generator

superdurnius

Corsair
Coordinator
3D Artist
Storm Modeller
Hi,

Just started Delphi7 at school, so I desided to see, what I can make with it... I had no Idea what I could try to make (noting my low knowledge on programing and coding) and remembered, how it was hard to me to code new Item into b14 first time I saw that Line-Code in InitItems file... So I desidet to *try* to make Item Code Generator. It's nothing Special... You just have to insert file info and "Program" generates that Items code in the botom of window, which you should copy/paste to InitItems.c...

It can now generate only 'Simple Item' and 'Quest Item' code and have no check for problems of your writings (I meen if you write 'Sh*t' in window, where should be written sailing bonus, program wont tell you, that your entering is little sh*tty). I just showed this before finishing it becouse I don't know if this will be usefull to anyone. Eweryone lived here without it <img src="http://forum.piratesahoy.net//style_emoticons/default/user_comment.gif" border="0" class="linked-image" />...
I gues it should be usefull for new member or something... If someone will post *good* comments I'll Update it. Thinking abot help with proper description too...

Please note before bad-commenting:
* I was only on 2 programing lessons...
* I worked on this *thing* only 1,5h (2 lessons)
* I never worked on Delphi7 before, only text-coded pascal basics with FreePascal, so I just guesed half of commands...

[attachment=2048:ItemCodeGenerator.7z]
 
That's pretty neat, maybe your teacher would let you write an entire Item/Quest writing tool for your final?
 
<!--quoteo(post=278515:date=Sep 17 2008, 11:39 PM:name=Dr. Maturin)--><div class='quotetop'>QUOTE (Dr. Maturin @ Sep 17 2008, 11:39 PM) <a href="index.php?act=findpost&pid=278515"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->That's pretty neat, maybe your teacher would let you write an entire Item/Quest writing tool for your final?<!--QuoteEnd--></div><!--QuoteEEnd-->
For Item Creation: Mightbe later I'll Ask for teacher, how can program read file (I meen InitItems.c) and Show/Add Items in that file... But that'll be little *intersting*/hard, becouse Delphi7 use pascal code, and ItemsInit.c use c code...

And for quest... Blah... I can't code the quest manualy... What can I tell about program to do that for me?? <img src="style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />
 
I don't know the first thing about Delphi7 or pascal.. but a c file is simple plain text, same as a .txt file but uses the extension .c
 
<!--quoteo(post=278526:date=Sep 18 2008, 12:54 AM:name=Dr. Maturin)--><div class='quotetop'>QUOTE (Dr. Maturin @ Sep 18 2008, 12:54 AM) <a href="index.php?act=findpost&pid=278526"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I don't know the first thing about Delphi7 or pascal.. but a c file is simple plain text, same as a .txt file but uses the extension .c<!--QuoteEnd--></div><!--QuoteEEnd-->
I ment not the extinction, I ment about cod it self spelling. It's similar, but also little diferent. I'm wondering, if program written in Delphi7 (with pascal code spelling) could read ItemsInit.C (with C++ spelling) with no errors or smth...
 
That is pretty cool, actually. Might indeed be useful. Thanks!
Only comments I have is that the performance of the program seems to be a bit low.
It seems to take a while to load all the boxes on my screen, which is odd.
Also there's a typo: "rearity" should be "rarity".
Other than that, it looks pretty good to me!
I hope that oen day you can extend it's abilities to also add the other item types.
And perhaps add some checks on the entries to see if they are sh*t. <img src="style_emoticons/<#EMO_DIR#>/wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />
 
Take a while to load? But that... Strange... On my pc it takes only abou half a second to load that thing...

And for spelling... Whell, you know my english <img src="style_emoticons/<#EMO_DIR#>/tongue.gif" style="vertical-align:middle" emoid=":blah:" border="0" alt="tongue.gif" /> ... I'll fix that... <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />

For extention... It'll generate all item types codes in a while, after that I'll make window with help (description of every value). Then value checking (so you wont try to add 'sh*t' to leadership <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />). And then try to make it find and read *.c files in PROGRAM directory, to edit Items, that already in the game... (If I'll ever come that far... <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />)...
 
A "while" is relative. It took a few seconds,
which was longer to load than I expected for such a program. <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" />
 
I think a quest writing program with a user friendly GUI would be infinitely useful.

1 Would standardize quest code format
2 Remove/reduce possibility of code error in quest writing
3 Far more user friendly, bringing in new writers
4 Simplify and streamline quest writing process

I think you may want to ask your teacher about something called a parser. It's what you would probably need to write to 'interpret' the c code.
 
<!--quoteo(post=278999:date=Sep 22 2008, 08:58 PM:name=Pieter Boelen)--><div class='quotetop'>QUOTE (Pieter Boelen @ Sep 22 2008, 08:58 PM) <a href="index.php?act=findpost&pid=278999"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->A "while" is relative. It took a few seconds,
which was longer to load than I expected for such a program. <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" /><!--QuoteEnd--></div><!--QuoteEEnd-->

That program hold lot's of unfinished codes too... I meen program can generate those 2 types of code, becouse I just hadn't time to finish other code types... They are almost finished <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> ... <img src="style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />

<!--quoteo(post=279010:date=Sep 23 2008, 02:19 AM:name=Dr. Maturin)--><div class='quotetop'>QUOTE (Dr. Maturin @ Sep 23 2008, 02:19 AM) <a href="index.php?act=findpost&pid=279010"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I think a quest writing program with a user friendly GUI would be infinitely useful.

1 Would standardize quest code format
2 Remove/reduce possibility of code error in quest writing
3 Far more user friendly, bringing in new writers
4 Simplify and streamline quest writing process<!--QuoteEnd--></div><!--QuoteEEnd-->
For quest code writing, I'm not shure... I think I'll finish Item generator first... (And for that, I think I'll going to ask help for someone... (Look lower <img src="style_emoticons/<#EMO_DIR#>/unsure.gif" style="vertical-align:middle" emoid=":?" border="0" alt="unsure.gif" /> )) Becouse for quest making, it req to have full knowing about quest making, and that isn't my specialisation <img src="style_emoticons/<#EMO_DIR#>/dunno.gif" style="vertical-align:middle" emoid=":shrug" border="0" alt="dunno.gif" /> ... But I'll try to make that intime <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />... Also It wont be "Item Code Generator" any more... It will be "Ultimate PotC:B14 Editor" <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />

<!--quoteo(post=279010:date=Sep 23 2008, 02:19 AM:name=Dr. Maturin)--><div class='quotetop'>QUOTE (Dr. Maturin @ Sep 23 2008, 02:19 AM) <a href="index.php?act=findpost&pid=279010"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I think you may want to ask your teacher about something called a parser. It's what you would probably need to write to 'interpret' the c code.<!--QuoteEnd--></div><!--QuoteEEnd-->
Ok, I'll try... But sometimes I think, that I know more than my teacher <img src="style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />


Help! ... I want to write detail descriptions for ewery value of Itema code, but Just don't know what some of those doo... Can someone write me (PM?) with more explanation? Afcourse if someone even could write those descriptions for me, then I could be realy happy, 'couse I think you already all know my English gramar and spelling <img src="http://forum.piratesahoy.net//style_emoticons/default/user_comment.gif" border="0" class="linked-image" />
 
The detail descriptions are in RESOURCE\INI\TEXTS\English\ItemsDescribe.txt or something like that.
 
Not that... I meen smth like this: maxDMG: What he doo, what his minimum and maxmum value... and ect...

\ItemsDescribe.txt holds descriptions of Quest Items I gues...
 
ItemsDescribe holds descriptions of all items.
But I read your question wrong.
Please post a list of those values you're not sure of.
Then I'll try to explain them as best I can.
 
Just a short note to say that I applied SuperDurnius' icon work (based on the DMC logo) to the exe files for the next Alpha. These were originally made for this program.
 
Yeap, ty for info...

BTW, program-Project is Dead <img src="style_emoticons/<#EMO_DIR#>/328_skull.gif" style="vertical-align:middle" emoid=":328_skull:" border="0" alt="328_skull.gif" /> for now... I'm not shure if It'll have anny use at all to anybody. But it was good practice of coding <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" />
 
Thanks for your work on it anyway. <img src="style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />
 
Back
Top