-
Re: [Release]New Manager for Items, Monsters, Maps, Bellatra
I have another problem:
I made a totally new custom map that is remplacing another, and when i choose this map an error pops up and the detail of it is:
**********************************************************************************************************************
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentOutOfRangeException: Index and count must refer to a location within the string.
Parameter name: count
at System.String.Remove(Int32 startIndex, Int32 count)
at PriTaTor.PriTaEditor.MapAuswertung(Int64 MapIndex)
at PriTaTor.PriTaEditor.lbFilesMaps_SelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.ListBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ListBox.WmReflectCommand(Message& m)
at System.Windows.Forms.ListBox.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
PriTaTor
Assembly Version: 1.3.648.0
Win32 Version: 1.3.648.0
CodeBase: file:///D:/AgeOfPristonTale%20server/AgeOfPristonTale/PriTaTor_1.8.800.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Management
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
**********************************************************************************************************************
What should i change to fix that cuz i made the map and i dont know what needs the pritator to work with this new map.
-
1 Attachment(s)
Re: [Release]New Manager for Items, Monsters, Maps, Bellatra
PriTaTor without mapfiles.
Just some little fixes, like NPC editor find all .npc and .inx files.
I found a bug in adding new NPC, it says, he cant find the new NPC file.
Please press reload and then it should work. i duno where exacly the problem is =)
Please use this version, because it give me more information about an error.
I also catched the map error SoyEdu had.
Attachment 70896
-
Re: [Release]New Manager for Items, Monsters, Maps, Bellatra
Dumomo, you should add some error handling in your application.
Code:
Try
txtResult.Text = Encrypt(Amount.Text) 'Error occurs if field is empty.
Catch ex As Exception 'There are different kinds of exceptions; e.g. InvalidCastException
MessageBox.Show("Error Message", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
Finally
'Something to do after all the code in the catch is being executed
End Try
This all to make your application crash less!
-
Re: [Release]New Manager for Items, Monsters, Maps, Bellatra
90% of my code catch the errors and write it to the error.log file.
But some parts i forgott to catch, because i cant catch all. lol
Now i added some =) and it will give me more information about the crash xD
But thx for the tipp=)
-
Re: [Release]New Manager for Items, Monsters, Maps, Bellatra
still the error in the maps section when i choose my map:
Pritator window error: "Error! :Index and count must refer to a location within the string. Parameter name: count"
Error log:
"mi
-
Re: [Release]New Manager for Items, Monsters, Maps, Bellatra
About the error, i knew that i didnt fix it=)
but i needed to know why it happens, and i hope this error.log gives me more information =)
The other thing is, my programm dont support all maps, the rest maps ill add later to my programm.
Because i didnt got the correct coordinates of PT. PT use global coordinatessystem, not for each map=)
About excel export, i think this sould be possible.
U wand to export data in excel, and then u calculate something with this data and transfer back to PriTaTor?
I was also thinking about, to make a Item List generator, that can do a list of items u want with stats like Perf stats=) or all stats that are interesting for players.
I also was think about to make a monster list and map list generator.
It generates a list with monster exp, and atk pow... well just this thats that you selected.
Its maybe interesting for ppl with PT server and websites=)
I hope today ill get the error.
-
Re: [Release]New Manager for Items, Monsters, Maps, Bellatra
yes thats exactly what i was thinking off, but the export-import thing isnt to modify one by one, i was thinking in export what u said, a totally list of items for example, then u can modify that and import all the data back to pt, same for monster so u dont need to edit it one by one.
Ya, i know, the maps areint in different places in the pt world, they are all in near to the absolute Cero in the 3d world and they switched Y axis for Z axis.
-
Re: [Release]New Manager for Items, Monsters, Maps, Bellatra
I think this is a good idea, i will think about how to realise this.
I wrote a other programm, that can read and write into excel files.
But i think it will support excel 2007, i duno it excel 2003 will work, because i only have 2007 and the interface for VB.net =)
i will try it=) hehe
-
Re: [Release]New Manager for Items, Monsters, Maps, Bellatra
I would like to vote for CSV (instead or as-well) as this can be used in other (more powerful, more cheap, more varied) tools besides the one mentioned in posts above which I shall not advertise again. ;)
CSV is also really really easy to code, so I can't see this being a difficult task considering what you've already achieved. It would be a shame to get an .XLS (or worse .XLSX) and be hunting around for something that could turn it into a .CSV just because it hadn't occurred to anyone to build CSV export in, only M$ Ossif. lol
Yes... I know lots of on-line office products can do that now, and that's great, until you find yourself taking the file away to work on while on holiday on a USB stick and get there only to find there is no internet access and you don't have M$ Ossif (or the copy is like 5 years out of date) on your laptop. :`(
Or other equally improbable happenstance that invariably arises despite the odds against it... Come on... Admit it... we've all been in that place at least once. lol
(I've been following this thread silently till now BTW. And I must say, while I'm speaking. Great program, good show. :two thumbs:)
-
Re: [Release]New Manager for Items, Monsters, Maps, Bellatra
.csv is a easy file structure thats true=)
That will be a easy way to export files in other programms like excel.
thats a good idea =) thx :8:
-
Re: [Release]New Manager for Items, Monsters, Maps, Bellatra
btw. i found the bug that SoyEdu got, it seems it
-
Re: [Release]New Manager for Items, Monsters, Maps, Bellatra
-
Re: [Release]New Manager for Items, Monsters, Maps, Bellatra
lol, i got what was the error:
Pritator cant work with a map that has some monster in the spm if that monster doesnt exist in the gameserver, so i guess if that happends, the pritator should pick thouse monsters and should show you to remove this monsters or to get the correct monster files.
btw, i fixed the error commenting that monsters (with //) in the spm file
-
Re: [Release]New Manager for Items, Monsters, Maps, Bellatra
no=) if monster dont exist, PriTaTor will say and show it.
But i think the code in PriTaTor is not good to read the spm file.
Maybe is there is no spawn rate could make an error (ill test today)
or maybe there is no " in monster name, could make an error too.
fore sure is, PriTaTor try to remove a string.
Like
*Spawncode "Monster name" 20
now my code remove spawncode
rest is
"monster name" 20
now remove all not needed space (empty char)
"Monster name" 20
now get monster name "monster name"
and remove the monster name
Rest is:
20
now my code try to get the spawnrate
possible is, if something is not there, my code get error
im not sure, but ill test today =)
i think i have to optimize the code hehe
-
1 Attachment(s)
Re: [Release]New Manager for Items, Monsters, Maps, Bellatra
I don't suppose I could request that the window be small enough to fit on the screen (Which, on my server is a maximum 1024x768 as GFX isn't priority on a server system) instead of loosing a millimetre off the bottom under the start bar and 15mil off the right?
I can size it, but the controls don't scale according to the window, which is odd for a VB program. And I can run it off a public share via SMB on my game system over the network (1280x1024) but that's not the best way to run server tools either.
I always try to assume people don't have more than 800x600, but allow a UI to scale to 1600x1200 without difficulty.
And please keep up the good work Sumomo. PriTaTor crashes less than any other dotNET application I have ever used. lol So don't feel too bad about it.:thumbup: Do I need Map files to use the last release? As it does presently just crash when I try to load NPCs and my last version was 1.5.056. :(