Tracing codified Error messages
-
My FLSpew / FLSpit reports:
ERROR: ArchDB::Get(3092071043) failed
Years ago, Anton developed a tool that was supposed to create a database so that these error messages could be traced to the actual archetype. It wasn’t really easy to use, and I never got it to work properly. And it’s such a long time ago that I don’t even know what proggy it was, much less how to use it.
This brings me to my question: how can I find what archetype is resposible for the error quoted above?
-
Generate a database with createid -sh then either: whatis 3092071043 for a single item (generic_pilot, btw); or flunhash flspew.txt |more for the whole file. If you prefer a GUI, use CRCTool (which also tells you which file(s) it’s in). All of these are on my site.
-
adoxa wrote:
Generate a database with createid -sh then either: whatis 3092071043 for a single item (generic_pilot, btw); or flunhash flspew.txt |more for the whole file. If you prefer a GUI, use CRCTool (which also tells you which file(s) it’s in). All of these are on my site.Thanks man!!
Yeah I believe Anton’s proggy was called CRCtool too. Did you build on that, or is it a completely new thing?
-
CRCTool says “not found”. It does work the other way around (when I type e.g. planet_gasgrncld_2000, it does report hits)
So, up to the CreateID then. Just don’t have a clue how to use it… Doubleclicking renders a command line window, but it closes again with half a second. So, where to put the -sh part?
EDIT: I made a shortcut and put the -sh in there, seems to work fine sofar.
EDIT 2: There is a file hashes.dat now in the CreateID folder, but I haven’t a clue how to use either Whatis or Flunhash. They run and close, without any visible output.
Jason (or someone else who knows) can you plz post how to use them? Don’t need tol elaborate, just how to use FLunhash and/or Whatis…
-
I built on Anton’s. It finds 3092071043 for me.
generic_pilot (Hash) (E:\Games\Freelancer\Data\SHIPS\shiparch.ini) ```The others are command line utilities, so start **Command Prompt**. Whatis really needs to be run from the prompt, but you can get away with dropping the spew/spit on Flunhash, then opening the resulting **.txt.txt** file. They should all be in the one directory (hashes.dat is read from the same directory as the executable).
-
adoxa wrote:
I built on Anton’s. It finds 3092071043 for me.generic_pilot (Hash) (E:\Games\Freelancer\Data\SHIPS\shiparch.ini)
Maybe I incidentally missed this entry up it in the file… That could explain both the error and the fact that CRCTool didn’t find it.
Although I’d hoped it would simply translate the code into something readable (but from what I recall, this is not how it works)
-
Turns out CRCTool only recognised a lower case .ini, so if you had SHIPARCH.INI, it wouldn’t scan it. Fixed that and added a couple more strings to the scanner (name for fuses and path_label in zones). It’s also a lot faster. CreateID has been updated again with path_label (it already had name). It will now also suggest you run it from a command prompt.
As far as generic_pilot goes, there’s nothing more to say. WhatIs, however, will provide more details on most stuff. For example:
E:\contrib\games\Freelancer>whatis -s dagger javelin champion 2213864517 missile01_mark01_rtc_ammo Javelin Missile 2248965056 bw_fighter Dagger (L. F.) 2387883788 npc_shield01_mark09 Champion Graviton Shield (Graviton, Fighter Class 9) 2623208079 transport2_m01a Transport USV Champion 2688493056 missile01_mark01_rtc Javelin Missile (Class 1) 2924544774 npc_shield01_mark10 Adv. Champion Graviton Shield (Graviton, Fighter Class 10) 2953309256 shield01_mark10_lf Adv. Champion L. F. Shield (Graviton, Fighter Class 10) 2962746376 shield01_mark10_hf Adv. Champion H. F. Shield (Graviton, Elite Class 10) 2974645449 shield01_mark10_fr Adv. Champion Fr. Shield (Graviton, Freighter Class 10) 3024599373 missile01_mark01 Javelin Missile (Class 1) 3088051523 shield01_mark09_lf Champion L. F. Shield (Graviton, Fighter Class 9) 3097488643 shield01_mark09_hf Champion H. F. Shield (Graviton, Elite Class 9) 3108339138 shield01_mark09_fr Champion Fr. Shield (Graviton, Freighter Class 9) 3130766926 missile01_mark01_ammo Javelin Missile
-
adoxa wrote:
Turns out CRCTool only recognised a lower case .ini, so if you had SHIPARCH.INI, it wouldn’t scan it. Fixed that and added a couple more strings to the scanner (name for fuses and path_label in zones). It’s also a lot faster. CreateID has been updated again with path_label (it already had name). It will now also suggest you run it from a command prompt.I do not have SHIPARCH.INI but I do have ShipArch.ini so the lowercase-only issue indeed explains why CRCTool didn’t find anything.
Cool that you fixed it!! dling new version right away.
-
adoxa wrote:
It only applied to the extension, so it should have worked. If it still doesn’t show up after a new scan, I’d say you’ve accidentally deleted it or something. generic_pilot should be the first thing in shiparch.ini.It appears that I did so indeed.
Actually I have broken up ShipArch.ini, to have it populated with the various types of ships that all have their own .xml doc, for easy reference. (I’d already done that for equipment, so I thought it would be consequent to do it for the ships as well.) And apparently I forgot to include the generic_pilot entry.
Thanks for helping me out!