dmurphy

Administrator
dmurphy submitted a new resource:

Updated paperdoll.php - Paperdoll.php for generating images from UO's data.

Voxpire asked me to share this with you guys as he is having a little problem with his computer access certain sites at the moment.

HTML Usage: <img src="path/to/paperdoll.php?id=123" />

Previewing: Visit the link directly in your browser: http://www.domain.com/path/to/paperdoll.php?id=123

*** REQUIREMENTS ***

Assuming you are the administrator of your shard and you've come this far,
you're looking for the final piece of that MyRunUO puzzle of the outdated Paperdoll...

Read more about this resource...
 
I don't think so and this was also posted with it
  1. This still requires a little work to work with the latest mul files (Converted from UOP) and Voxpire is hoping we can turn this into a community project!
 
What i get when calling http://rebirthuo.com/MyRunUO/paperdoll.php?id=99694
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in /home/rebirthu/public_html/MyRunUO/database.php on line 39

Warning: fclose() expects parameter 1 to be resource, boolean given in /home/rebirthu/public_html/MyRunUO/paperdoll.php on line 664

Warning: fclose() expects parameter 1 to be resource, boolean given in /home/rebirthu/public_html/MyRunUO/paperdoll.php on line 665

Warning: fclose() expects parameter 1 to be resource, boolean given in /home/rebirthu/public_html/MyRunUO/paperdoll.php on line 666

Warning: fclose() expects parameter 1 to be resource, boolean given in /home/rebirthu/public_html/MyRunUO/paperdoll.php on line 667
 
Hmm looks like a query is failing somewhere. Are you sure you have the database set up correctly?
 
I am pretty sure. I will double check my config file, but i set it up the same as i had previously on MyRunUO.
 
I enabled debug in config:

Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in /home/rebirthu/public_html/MyRunUO/database.php on line 39
Initializing Database...
Done!
Initializing Character...
Query Database: SELECT * FROM myrunuo_characters WHERE id='99694'
Failed!
Character not found!
 
Last edited:
There is no ID 99694 in the myrunuo_characters table. Check your database using phpmyadmin or another database tool and make check to see what ID's are available. You might also have an incorrect prefix on the tables.
 
The issue is that in paperdoll.php it is char_id and not id.

New warnings.
Code:
Warning: unpack() [function.unpack]: Invalid format type q in /home/rebirthu/public_html/MyRunUO/paperdoll.php on line 712
 
Warning: unpack() [function.unpack]: Invalid format type q in /home/rebirthu/public_html/MyRunUO/paperdoll.php on line 712
 
Warning: unpack() [function.unpack]: Invalid format type q in /home/rebirthu/public_html/MyRunUO/paperdoll.php on line 712
 
Warning: unpack() [function.unpack]: Invalid format type q in /home/rebirthu/public_html/MyRunUO/paperdoll.php on line 712
 
Warning: unpack() [function.unpack]: Invalid format type q in /home/rebirthu/public_html/MyRunUO/paperdoll.php on line 712
Initializing Database...
Done!
Initializing Character...
Query Database: SELECT * FROM myrunuo_characters WHERE char_id='99694'
Done!
Initializing Mul files...
Done!
Removing Guild Strings...
Done!
Setting Body Index...
Index: 12 * Female: 0
Done!
Setting BodyHue...
BodyHue: * Gump: 1
Done!
Set Dimesions: W:266 H:285
Initializing Items...
Query Database: SELECT * FROM myrunuo_characters_layers WHERE char_id='99694' ORDER BY layer_id
Found Item - Parsing...
Item ID: 7933 * Layer: 0 * Hue: 236
Found Item - Parsing...
Item ID: 5422 * Layer: 1 * Hue: 880
Found Item - Parsing...
Item ID: 5903 * Layer: 2 * Hue: 1743
Found Item - Parsing...
Item ID: 5435 * Layer: 3 * Hue: 1711
Found Item - Parsing...
Item ID: 8251 * Layer: 4 * Hue: 1102
Insert Items into Variables...
Index-> 12,7933,5422,5903,5435,8251
Female-> 0,0,0,0,0,0
Gump-> 1,0,0,0,0,0
Hue-> ,236,880,1743,1711,1102
Done!
Building The Gump...
Verifying Mul Files:
TileData: Resource id #5
Hues: Resource id #4
Gump: Resource id #6
Gump Index: Resource id #7
Done!
Parsing Values...
Done!
Parsing Each Item...
Index: 12 * Female: 0 * Hue: 0 * Gump: 1
Load The Raw Gump...
Get Value From GumpIndex: returned ...
Get Value From GumpIndex: returned ...
Get Value From GumpIndex: returned ...
Index: 7933 * Female: 0 * Hue: 236 * Gump: 0
Get Value From TileData: returned ...
Flags Say NOT WEARABLE, move to next Item...
Index: 5422 * Female: 0 * Hue: 880 * Gump: 0
Get Value From TileData: returned ...
Flags Say NOT WEARABLE, move to next Item...
Index: 5903 * Female: 0 * Hue: 1743 * Gump: 0
Get Value From TileData: returned ...
Flags Say NOT WEARABLE, move to next Item...
Index: 5435 * Female: 0 * Hue: 1711 * Gump: 0
Get Value From TileData: returned ...
Flags Say NOT WEARABLE, move to next Item...
Index: 8251 * Female: 0 * Hue: 1102 * Gump: 0
Get Value From TileData: returned ...
Flags Say NOT WEARABLE, move to next Item...
 
Last edited:
Getting this error now
Warning: Cannot modify header information - headers already sent by (output started at /home/rebirthu/public_html/MyRunUO/paperdoll.php:712) in /home/rebirthu/public_html/MyRunUO/paperdoll.php on line 777
 
So I figured out the unpack error. Unpack no longer accepts q*long as an argument, you need to go to f*long if you are wanting to do a long. so now in the debug I get this, but I do not get an image.
Code:
Initializing Database...
Done!
Initializing Character...
Query Database: SELECT * FROM myrunuo_characters WHERE char_id='57710'
Done!
Initializing Mul files...
Done!
Removing Guild Strings...
Done!
Setting Body Index...
Index: 12 * Female: 0
Done!
Setting BodyHue...
BodyHue: * Gump: 1
Done!
Set Dimesions: W:266 H:285
Initializing Items...
Query Database: SELECT * FROM myrunuo_characters_layers WHERE char_id='57710' ORDER BY layer_id
Found Item - Parsing...
Item ID: 7942 * Layer: 0 * Hue: 0
Found Item - Parsing...
Item ID: 7945 * Layer: 1 * Hue: 0
Found Item - Parsing...
Item ID: 5901 * Layer: 2 * Hue: 1
Found Item - Parsing...
Item ID: 5069 * Layer: 3 * Hue: 1109
Found Item - Parsing...
Item ID: 5083 * Layer: 4 * Hue: 0
Found Item - Parsing...
Item ID: 5062 * Layer: 5 * Hue: 1109
Found Item - Parsing...
Item ID: 3834 * Layer: 6 * Hue: 0
Found Item - Parsing...
Item ID: 7610 * Layer: 7 * Hue: 1109
Insert Items into Variables...
Index-> 12,7942,7945,5901,5069,5083,5062,3834,7610
Female-> 0,0,0,0,0,0,0,0,0
Gump-> 1,0,0,0,0,0,0,0,0
Hue-> ,0,0,1,1109,0,1109,0,1109
Done!
Building The Gump...
Verifying Mul Files:
TileData: Resource id #6
Hues: Resource id #5
Gump: Resource id #7
Gump Index: Resource id #8
Done!
Parsing Values...
Done!
Parsing Each Item...
Index: 12 * Female: 0 * Hue: 0 * Gump: 1
Load The Raw Gump...
Get Value From GumpIndex: returned ...
Get Value From GumpIndex: returned ...
Get Value From GumpIndex: returned ...
Index: 7942 * Female: 0 * Hue: 0 * Gump: 0
Get Value From TileData: returned ...
Flags Say NOT WEARABLE, move to next Item...
Index: 7945 * Female: 0 * Hue: 0 * Gump: 0
Get Value From TileData: returned ...
Flags Say NOT WEARABLE, move to next Item...
Index: 5901 * Female: 0 * Hue: 1 * Gump: 0
Get Value From TileData: returned ...
Flags Say NOT WEARABLE, move to next Item...
Index: 5069 * Female: 0 * Hue: 1109 * Gump: 0
Get Value From TileData: returned ...
Flags Say NOT WEARABLE, move to next Item...
Index: 5083 * Female: 0 * Hue: 0 * Gump: 0
Get Value From TileData: returned ...
Flags Say NOT WEARABLE, move to next Item...
Index: 5062 * Female: 0 * Hue: 1109 * Gump: 0
Get Value From TileData: returned ...
Flags Say NOT WEARABLE, move to next Item...
Index: 3834 * Female: 0 * Hue: 0 * Gump: 0
Get Value From TileData: returned ...
Flags Say NOT WEARABLE, move to next Item...
Index: 7610 * Female: 0 * Hue: 1109 * Gump: 0
Get Value From TileData: returned ...
Flags Say NOT WEARABLE, move to next Item...
 
Hey !

I've spent quite a few hours on getting this version to work with actualized tiledata.mul, but with no success yet.

If you have clues on how the TileData.mul is organized, that would help me.
I've tried changing the parameters to what seemed to be new numbers of blocks (for fseek).
And I've even tried to change the Unpack method to manually get the 64 bits Integers supported.

For now, I do think the structure of the tiledata.mul needs to be analyzed thoroughly to get the paperdoll work with it.

For your immediate issue, I would advice you to use older MUL files (from ML for example ?)

Good luck !
 
no gump tile ? where are you problem.

Code:
Initializing Database...
Done!
Initializing Character...
Query Database: SELECT * FROM myrunuo_characters WHERE char_id='33963'
Done!
Initializing Mul files...
Done!
Removing Guild Strings...
Done!
Setting Body Index...
Index: 12 * Female: 0
Done!
Setting BodyHue...
BodyHue: 34542 * Gump: 1
Done!
Set Dimesions: W:266 H:285
Initializing Items...
Query Database: SELECT * FROM myrunuo_characters_layers WHERE char_id='33963' ORDER BY layer_id
Found Item - Parsing...
Item ID: 17790 * Layer: 0 * Hue: 2129
Found Item - Parsing...
Item ID: 7942 * Layer: 1 * Hue: 0
Found Item - Parsing...
Item ID: 4234 * Layer: 2 * Hue: 0
Found Item - Parsing...
Item ID: 774 * Layer: 3 * Hue: 2220
Found Item - Parsing...
Item ID: 770 * Layer: 4 * Hue: 2220
Found Item - Parsing...
Item ID: 772 * Layer: 5 * Hue: 2117
Found Item - Parsing...
Item ID: 785 * Layer: 6 * Hue: 2220
Found Item - Parsing...
Item ID: 2303 * Layer: 7 * Hue: 0
Found Item - Parsing...
Item ID: 17071 * Layer: 8 * Hue: 1891
Found Item - Parsing...
Item ID: 16986 * Layer: 9 * Hue: 1891
Insert Items into Variables...
Index-> 12,17790,7942,4234,774,770,772,785,2303,17071,16986
Female-> 0,0,0,0,0,0,0,0,0,0,0
Gump-> 1,0,0,0,0,0,0,0,0,0,0
Hue-> 34542,2129,0,0,2220,2220,2117,2220,0,1891,1891
Done!
Building The Gump...
Verifying Mul Files:
TileData: Resource id #6
Hues: Resource id #5
Gump: Resource id #7
Gump Index: Resource id #8
Done!
Parsing Values...
Done!
Parsing Each Item...
Index: 12 * Female: 0 * Hue: 34542 * Gump: 1
Load The Raw Gump...
Get Value From GumpIndex: returned ...
Get Value From GumpIndex: returned ...
Get Value From GumpIndex: returned ...
Index: 17790 * Female: 0 * Hue: 2129 * Gump: 0
Index: 7942 * Female: 0 * Hue: 0 * Gump: 0
Get Value From TileData: returned ...
Flags Say NOT WEARABLE, move to next Item...
Index: 4234 * Female: 0 * Hue: 0 * Gump: 0
Get Value From TileData: returned ...
Flags Say NOT WEARABLE, move to next Item...
Index: 774 * Female: 0 * Hue: 2220 * Gump: 0
Get Value From TileData: returned ...
Flags Say NOT WEARABLE, move to next Item...
Index: 770 * Female: 0 * Hue: 2220 * Gump: 0
Get Value From TileData: returned ...
Flags Say NOT WEARABLE, move to next Item...
Index: 772 * Female: 0 * Hue: 2117 * Gump: 0
Get Value From TileData: returned ...
Flags Say NOT WEARABLE, move to next Item...
Index: 785 * Female: 0 * Hue: 2220 * Gump: 0
Get Value From TileData: returned ...
Flags Say NOT WEARABLE, move to next Item...
Index: 2303 * Female: 0 * Hue: 0 * Gump: 0
Get Value From TileData: returned ...
Flags Say NOT WEARABLE, move to next Item...
Index: 17071 * Female: 0 * Hue: 1891 * Gump: 0
Index: 16986 * Female: 0 * Hue: 1891 * Gump: 0
 

Attachments

  • ScreenHunter_14 Apr. 15 14.21.png
    ScreenHunter_14 Apr. 15 14.21.png
    1 KB · Views: 49
Back