Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 16.12.2006, 09:27   #1
khelben
Архивный участник
 
Join Date: Mar 2006
Posts: 104
Default [SHARE] NPCDATA Drop Quantities Editor

I just finished writing this utility not to long ago, it's purpose is to increase the drop quantities of basic crafting components to allow a crafting community to actually exist.

The formulas the program uses are explained in the readme.

I have not tested this on a production server as I do not run one, but I have downloaded 2 different NPCDATA.TXT files that claim to be C4 official and the tool has performed flawlessly on them. This was written for the admins of a server I play on so that they could solve lack of materials issues on a 7x server.

A side note, this was written quick and dirty so if you try to break it, you probably will (i.e. by entering text instead of a number in the modification factor boxes).

The source code is included, which has the makings of a pretty decent NPC class in it.

This utility could do alot more if I have the time/motivation to update it.

The source code is included.
You do need .Net Framework 2.0

You are free to use/distribute/modify this program as long as the source code is included or made available on the same download page as the modified program.

Enjoy! Comments welcome!

****Updated****
-v0.5
Forced Program to use English (United States) Regional Settings.
This should clear miscellaneous reports of errors interpreting stings.
The problem is that .Net tries to use local settings and in some
areas ',' and '.' mean very different things.

-v0.4
Added Progress Bar
Added Multiply Formula

-v0.3
Added Ignore formula option.
Prevented input of text into Modification Factor boxes.
Increased error message verbosity to help end user check for properly formatted
NPCDATA. Error message should display the NPC where the error occurred.
Started come minor code cleanup & commenting.
Included EULA in package.

-v0.2
Fixed issue in normalize option that would allow a quantity of 0 to be written.

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
NPCData QE v0.5.zip — 96261 байт
khelben is offline  
Old 16.12.2006, 11:10   #2
l2serverfull
Архивный участник
 
Join Date: Sep 2006
Posts: 64
Default

is possible dell all Mats in npcdata ? ... help me
l2serverfull is offline  
Old 16.12.2006, 11:15   #3
l2serverfull
Архивный участник
 
Join Date: Sep 2006
Posts: 64
Default

OMG thxxxx lot
l2serverfull is offline  
Old 16.12.2006, 18:23   #4
khelben
Архивный участник
 
Join Date: Mar 2006
Posts: 104
Default

i did a bit more testing and found an issue w/ normailize option.

It was a logic error on my part, I guess not enough caffine while coding ;p
khelben is offline  
Old 16.12.2006, 19:19   #5
DevilsAssociate
Архивный участник
 
Join Date: Jul 2006
Posts: 81
Default

nice job
thanks for the share
DevilsAssociate is offline  
Old 17.12.2006, 16:15   #6
Arcia
Архивный участник
 
Join Date: Dec 2006
Posts: 135
Default

Excellent! Thanks a lot.

Good work!
Arcia is offline  
Old 17.12.2006, 16:52   #7
Genes2
Архивный участник
 
Join Date: Dec 2006
Posts: 207
Default

very good job .
Genes2 is offline  
Old 17.12.2006, 21:44   #8
khelben
Архивный участник
 
Join Date: Mar 2006
Posts: 104
Default

v0.3 Released
khelben is offline  
Old 17.12.2006, 22:02   #9
scrap512
Архивный участник
 
Join Date: Jul 2006
Posts: 77
Default

thank you very much !
scrap512 is offline  
Old 21.12.2006, 07:09   #10
Nasedo
Архивный участник
 
Join Date: Nov 2005
Posts: 59
Default

It creates a 2kb file, I changed NPCdata to text because it errors in ANSI what am I doing wrong?
Nasedo is offline  
Old 21.12.2006, 09:10   #11
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Sorry, but last pack no good.
Components file in unknown regional code, and Main.vb empty 0 kb.
HF is offline  
Old 21.12.2006, 21:58   #12
khelben
Архивный участник
 
Join Date: Mar 2006
Posts: 104
Default

Quote:
Originally Posted by Nasedo View Post
It creates a 2kb file, I changed NPCdata to text because it errors in ANSI what am I doing wrong?
Keep it unicode, no need to convert it.

Additionally, if that does not solve your issue examine the NPC that it spits out the error for. Chances are it's improperly formatted. TABS between values, not spaces.
khelben is offline  
Old 21.12.2006, 22:05   #13
khelben
Архивный участник
 
Join Date: Mar 2006
Posts: 104
Default

Quote:
Originally Posted by HF View Post
Sorry, but last pack no good.
Components file in unknown regional code, and Main.vb empty 0 kb.
main.vb is 0kb.
main.designer.vb has the code in it.

you must have edited the components file. it hasn't changed since v0.1 if you do edit it be sure to save it as unicode.
khelben is offline  
Old 23.12.2006, 06:14   #14
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

Code:
hmm IM getting this errors.. tried all formulas.. my npcdata is c4 retail 1x
.. no tabs.. no spaces..   only 2kb file created..

btw this error only when its in default L2 format (larger filesize) ..
when I convert to smaller filesize (unicode to ansi ?? ) im getting no error but program freeze.

latest version work OK - Im glad to help you to find where was problems :-)
rodier is offline  
Old 23.12.2006, 06:35   #15
khelben
Архивный участник
 
Join Date: Mar 2006
Posts: 104
Default

Between [gremlin] and level=1, is that a space or a tab?
khelben is offline  
Old 23.12.2006, 06:52   #16
khelben
Архивный участник
 
Join Date: Mar 2006
Posts: 104
Default

I just tested the rar you posted and it processed fine.

Maybe you need to be more patient?

It did take almost a full 10 seconds on my Athlon FX 60 w/ 4 GB Ram....

All i did was extract your file, load it in and pick an output file and ran it w/ default settings.

Keep in mind that it is parsing through an 18 meg file.
khelben is offline  
Old 23.12.2006, 06:57   #17
khelben
Архивный участник
 
Join Date: Mar 2006
Posts: 104
Default

When the hour glass is there, it's working on your file.

I plan on adding a progress bar eventually, but I haven't had the time yet.

Maybe after the New Year
khelben is offline  
Old 23.12.2006, 17:12   #18
khelben
Архивный участник
 
Join Date: Mar 2006
Posts: 104
Default

Ok I worked w/ rodier a bit last night.

He's getting his error on 2 different boxes w/ different CPUs and Operating Systems.

However his language settings are not English - US, I have not tested this on anything other than English - US, but he was going to change the settings and reboot and get back to me on the results.
khelben is offline  
Old 25.12.2006, 13:06   #19
khelben
Архивный участник
 
Join Date: Mar 2006
Posts: 104
Default

Updated v0.4!
Merry Christmas!
khelben is offline  
Old 25.12.2006, 14:12   #20
Osito2Dancer
Архивный участник
 
Join Date: Mar 2005
Posts: 442
Default

Very good share, thanks for it. Its really good, but i think i found a bug: for anyone who used this, please check the "adquire_exp_rate" of the new NPCDATA.txt. I ran this program on the PP-IRC C4 Release, and got the adquire_exp_rate modified by this standard:

Original: adquire_exp_rate = xx.xx (for a lvl 1 gremlin, the 1ºst mob)
Parsed One: adquire_exp_rate = 2939 (the same mob, got the "." on "xx.xx" deleted)

I used "Multiply" option, but just tested it out with Default one. Be careful about this.

Atte

Oso
Osito2Dancer is offline  
Old 25.12.2006, 22:21   #21
khelben
Архивный участник
 
Join Date: Mar 2006
Posts: 104
Default

Please post the original NPC data so i can test.

I tested several versions with the new multiply formula with no descrepancy.

Thanks.
khelben is offline  
Old 26.12.2006, 01:05   #22
khelben
Архивный участник
 
Join Date: Mar 2006
Posts: 104
Default

Quote:
Originally Posted by Osito2Dancer View Post
Very good share, thanks for it. Its really good, but i think i found a bug: for anyone who used this, please check the "adquire_exp_rate" of the new NPCDATA.txt. I ran this program on the PP-IRC C4 Release, and got the adquire_exp_rate modified by this standard:

Original: adquire_exp_rate = xx.xx (for a lvl 1 gremlin, the 1ºst mob)
Parsed One: adquire_exp_rate = 2939 (the same mob, got the "." on "xx.xx" deleted)

I used "Multiply" option, but just tested it out with Default one. Be careful about this.

Atte

Oso
Both you and Rodier seem to have an issue with the same value. I really think this might be a localization issue. In your country do they use . for a decimal point or , ?

Thanks.
khelben is offline  
Old 26.12.2006, 13:39   #23
khelben
Архивный участник
 
Join Date: Mar 2006
Posts: 104
Default

Ok, for those of you that are having trouble and you NPC data is good, it is your Regional Settings. If you set your Regional settings to English - US you should be fine.

I think I have fixed this in the next release, However I'm far to tired to publish it right now.

I'll post it later.

I'd really like someone that was having problems to message me though so it could be tested a bit further.

I did some testing myself with my regional settings set to places that do not use . to denote fractional numbers and I'm no longer getting errors, but I'd feel better about releasing if it actually field tests ok for someone.

-Thanks.
khelben is offline  
Old 26.12.2006, 19:11   #24
khelben
Архивный участник
 
Join Date: Mar 2006
Posts: 104
Default

Updated v0.5
Should fix errors caused by regional settings.
khelben is offline  
Old 27.12.2006, 22:10   #25
khelben
Архивный участник
 
Join Date: Mar 2006
Posts: 104
Default

So has anyone found this thing useful?

Can you think of any other features to add?

Please post feedback. Thanks!
khelben is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 21:20.