From: SourceForge.net <no...@so...> - 2005-01-20 23:41:54
|
Bugs item #1079272, was opened at 2004-12-05 10:16 Message generated for change (Comment added) made by theforken You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=384719&aid=1079272&group_id=25576 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Loknar (loknar) Assigned to: Nobody/Anonymous (nobody) Summary: Problems loading characters Initial Comment: Well sometimes I can't reload my saved characters. Creating a new Character and copying nearly any aspect from the old .pcg file with Ultraedit to over the new one helps but I still don't know where the error can be found. I made a diff of two files of which one did not load but the second did. Something that is strange abouit that diff is that in fact the PCGVERSION lines seem to be identical in hex-view ??? ... 1c1 < PCGVERSION:2.0 --- > PCGVERSION:2.0 5c5 < VERSION:5.7.8 --- > VERSION:5.7.10 8c8 < POOLPOINTS:31 --- > POOLPOINTS:0 26,27c26,27 < SKINCOLOR:Hell, fast weiÃY < EYECOLOR:Grün --- > SKINCOLOR:Hell, fast weiss > EYECOLOR:Gruen 37c37 < INTERESTS:Law --- > INTERESTS:Gesetze 58c58,61 < EXPERIENCE:3000 --- > EXPERIENCE:4000 > > # Character Templates > TEMPLATESAPPLIED:[NAME:Plan 173c176 < AGESET:0:0:0:0:0:0:0:0:0:0 --- > AGESET:1:0:0:0:0:0:0:0:0:0 ---------------------------------------------------------------------- Comment By: TheForken (theforken) Date: 2005-01-21 00:41 Message: Logged In: YES user_id=1200673 These are the first Hex character from each file : Torin Elidan.pcg |-17|-69|-65|80|67|71|86|69|82|83|73| Torin Elidan3.pcg |80|67|71|86|69|82|83|73| as u can see the second one "lost" the first 3 byte witch are negative. This comparison has been maden by reading (FileInputStream) both files and printing the values of each byte I'll double check which is the meaning of a negative byte for Java. regards ---------------------------------------------------------------------- Comment By: Loknar (loknar) Date: 2004-12-05 16:06 Message: Logged In: YES user_id=1007281 Well both files are in unicode - completely (it seems to me that since the beta versions the pcg-files are written as unicode). The thing I wonder about is that both semms to be nearly identical byte by byte although one of them denies to load ... ---------------------------------------------------------------------- Comment By: Eric Beaudoin (ericbeaudoin) Date: 2004-12-05 15:58 Message: Logged In: YES user_id=324612 Well, the obvious difference appear to be that one of the PCG (the top one in the diff) is coded in UTF-8 or some other no- ACSII encoding. Plain ASCII and UNICODE are not compatible. There is no real way for an application to be 100% sure that a file is either one of the other. The application must make educated guesses or make an assomption before loading. If someone change the format of the .PCG files without putting in a new extension for the UFT-8 files, this is only the first on a long line of problems we will see. ---------------------------------------------------------------------- Comment By: Loknar (loknar) Date: 2004-12-05 15:35 Message: Logged In: YES user_id=1007281 no problem - here they are ... the file "Torin Elidan.pcg" is the broken one while "Torin Elidan3.pcg" loads smoothly ... ---------------------------------------------------------------------- Comment By: James Dempsey (jdempsey) Date: 2004-12-05 12:51 Message: Logged In: YES user_id=558288 Hi Loknar, Could you attach the two files please? Thanks, James Dempsey PCGen Code Monkey ---------------------------------------------------------------------- Comment By: Loknar (loknar) Date: 2004-12-05 10:27 Message: Logged In: YES user_id=1007281 I have purged the diff a bit by changing the template that denies to load ... that's what is left: 1c1 < PCGVERSION:2.0 --- > PCGVERSION:2.0 59a60,62 > # Character Templates > TEMPLATESAPPLIED:[NAME:Planetouched (Aasimar)] > The strange thing is still that I can'T see the difference before PCGVERSION in the hex view of ultraedit ... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=384719&aid=1079272&group_id=25576 |