
[Edit: Removed 200 smilies from this post. --Norbert]
Tomorrow, probably.kamil9595pl wrote:when when when when? ? ?
[Edit: Removed 200 smilies from this post. --Norbert]
Code: Select all
$ PR-1.1/src/bin/pr --resource=PR-1.1/src/bin/resources.xml --import=PoP1OPEN/ PoP1/TITLE.DAT
Princed resources (PR) v1.1 GNU/Linux
(c) Copyright 2003 - 2005 Princed Development Team
http://www.princed.com.ar
Importing 'PoP1/TITLE.DAT' from 'PoP1OPEN/'
File TITLE.DAT already exists. Replace? [Yes/no/all]:y
Result: 12 files with errors (12)
Code: Select all
$ PR-1.3/src/bin/pr --resource=PR-1.3/src/bin/resources.xml --import=PoP1OPEN/ PoP1/TITLE.DAT
Princed resources (PR) v1.3 GNU/Linux
(c) Copyright 2003-2012 Princed Development Team
http://www.princed.org
Importing 'PoP1/TITLE.DAT' from 'PoP1OPEN/'
File TITLE.DAT already exists. Replace? [Yes/no/all]:y
Result: Success (0)
Doesn't change the outcome.David wrote:Maybe try without the slash after PoP1OPEN?
I don't know why it's no longer working.David wrote:But PR worked when you made your mod, didn't it? And now it suddenly doesn't? How can that be? Did you use some other version of PR?
With cmp, between the original and the PR 1.1 output, the original and the PR 1.3 output, and the PR 1.1 output and the PR 1.3 output.David wrote:How do you check whether the file changes?
Cool, it'll be interesting to see if you can replicate it.David wrote:Anyway, I will reboot to Ubuntu and try it there.
Code: Select all
Compiling the POP1 16 colors palette class support...
In file included from /usr/include/string.h:640,
from lib/object/palette/pop1_4bit.c:39:
In function ‘memcpy’,
inlined from ‘paletteGetColorArrayForColors’ at lib/object/palette/pop1_4bit.c:230:
/usr/include/bits/string3.h:52: warning: call to __builtin___memcpy_chk will always overflow destination buffer
Compiling prince level files support (plv)...
lib/formats/plv.c: In function ‘readPlv’:
lib/formats/plv.c:211: warning: incompatible implicit declaration of built-in function ‘free’
Code: Select all
nagy@nagy-desktop:~/david/prince/pr-bug$ pr13/pr --resource=pr13/resources.xml --import=resources prince1/TITLE.DAT
Princed resources (PR) v1.3 GNU/Linux
(c) Copyright 2003-2012 Princed Development Team
http://www.princed.org
Importing 'prince1/TITLE.DAT' from 'resources'
File TITLE.DAT already exists. Replace? [Yes/no/all]:a
*** buffer overflow detected ***: pr13/pr terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x50)[0x32cd40]
/lib/tls/i686/cmov/libc.so.6(+0xe6c7a)[0x32bc7a]
/lib/tls/i686/cmov/libc.so.6(__fread_chk+0x120)[0x32c500]
pr13/pr[0x80595e7]
pr13/pr[0x8057afc]
pr13/pr[0x80558c2]
pr13/pr[0x804eba9]
pr13/pr[0x8048ead]
pr13/pr[0x805b405]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x25bbd6]
pr13/pr[0x8048d11]
======= Memory map: ========
00245000-0039e000 r-xp 00000000 08:02 512034 /lib/tls/i686/cmov/libc-2.11.1.so
0039e000-003a0000 r--p 00159000 08:02 512034 /lib/tls/i686/cmov/libc-2.11.1.so
003a0000-003a1000 rw-p 0015b000 08:02 512034 /lib/tls/i686/cmov/libc-2.11.1.so
003a1000-003a4000 rw-p 00000000 00:00 0
005c5000-005c6000 r-xp 00000000 00:00 0 [vdso]
009e9000-00a06000 r-xp 00000000 08:02 458866 /lib/libgcc_s.so.1
00a06000-00a07000 r--p 0001c000 08:02 458866 /lib/libgcc_s.so.1
00a07000-00a08000 rw-p 0001d000 08:02 458866 /lib/libgcc_s.so.1
00bad000-00bc8000 r-xp 00000000 08:02 463735 /lib/ld-2.11.1.so
00bc8000-00bc9000 r--p 0001a000 08:02 463735 /lib/ld-2.11.1.so
00bc9000-00bca000 rw-p 0001b000 08:02 463735 /lib/ld-2.11.1.so
08048000-0805e000 r-xp 00000000 08:02 295330 /home/nagy/david/prince/pr-bug/pr13/pr
0805e000-0805f000 r--p 00015000 08:02 295330 /home/nagy/david/prince/pr-bug/pr13/pr
0805f000-08060000 rw-p 00016000 08:02 295330 /home/nagy/david/prince/pr-bug/pr13/pr
08ea6000-08f2a000 rw-p 00000000 00:00 0 [heap]
b77de000-b77df000 rw-p 00000000 00:00 0
b77ee000-b77f4000 rw-p 00000000 00:00 0
bfc3f000-bfc54000 rw-p 00000000 00:00 0 [stack]
Félbeszakítva
Code: Select all
include/common.h:149:1: warning: C++ style comments are not allowed in ISO C90
include/common.h:149:1: warning: (this will be reported only once per input file)
Code: Select all
(gdb) bt
#0 0x0012d422 in __kernel_vsyscall ()
#1 0x00158681 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0x0015bab2 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0x0019224d in ?? () from /lib/tls/i686/cmov/libc.so.6
#4 0x00215d40 in __fortify_fail () from /lib/tls/i686/cmov/libc.so.6
#5 0x00214c7a in __chk_fail () from /lib/tls/i686/cmov/libc.so.6
#6 0x00215500 in __fread_chk () from /lib/tls/i686/cmov/libc.so.6
#7 0x080594f7 in readBmp ()
#8 0x08057a0c in objImage16Read ()
#9 0x08055882 in readObject ()
#10 0x0804eb69 in import_full ()
#11 0x08048e6d in prImportDatOpt ()
#12 0x0805b315 in main ()
Code: Select all
ok=ok&&freadlong(&width ,bitmap);
ok=ok&&freadlong(&height ,bitmap);
Code: Select all
unsigned short int height=0;
unsigned short int width=0;
Could be.David wrote:Maybe something was changed in gcc or in libc or in the Linux kernel?
Tried that, still no success.David wrote:Perhaps you should fix this in your copy, and try again.
No video, but a text. Here it is.Norbert wrote:I will create a video that shows what to do.
I still don't understand it.Norbert wrote: (15:11:16) Norbert: @David: basically, some directories PR creates are all capitals and some are not
(15:11:29) Norbert: title is not, so my commands could never work
Code: Select all
$ PR-1.3/src/bin/pr --resource=PR-1.3/src/bin/resources.xml --import=PoP1OPEN/ PoP1/TITLE.DAT
Code: Select all
$ pr13/pr --resource=pr13/resources.xml --import=resources prince1/TITLE.DAT
As I commented under the video:kamil9595pl wrote:See my video, see where I am doing mistake please: ( help help help me me me( me )xd ;(
http://www.youtube.com/watch?v=fcw8bvWd-iY
3:24 You can't do that.
You cannot change the colors in the Colormap.
You can only _use_ the colors in the Colormap to change the image.
As David wrote here:Also, you still need to _import_ the images (the resources).
You only exported the images.
David wrote:After you finished editing, copy the following command and paste it into the command line and press enter.If you see the question Replace? [Yes/no/all]:, press a.Code: Select all
pr\pr.exe --resource=pr\resources.xml --import=resources prince\*.DAT
Wait until it stops.
Now start the game. You should see your edited graphics.