The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[UPDATED]Paperdoll & Web
Author Message
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #51
RE: [UPDATED]Paperdoll & Web
the uorenaissanse database is not too complex, but it has many tricks
like the paperdoll engine: we already have a SQL+PHP paperdoll working engine on sphere and we can write some info about items on the database (ID, name, durability, hue, ...). We can read all this thing and generate the paperdoll (gump) but we just don't know the trick to read items from tiledata instead gumps

but something I really like on this server is the world map, it show the entire server map on server page
http://www.uorenaissance.com/map
I have no idea how this works, probably UOAM server export many different img files on many zoom levels, and Google Maps API read all these imgs to generate the working map (because that's how Google Maps API works)
(This post was last modified: 06-17-2014 10:57 AM by Coruja.)
06-17-2014 10:54 AM
Find all posts by this user Like Post Quote this message in a reply
Feeh
Sphere Developer
*****

Posts: 156
Likes Given: 6
Likes Received: 40 in 29 posts
Joined: Sep 2012
Reputation: 4



Post: #52
RE: [UPDATED]Paperdoll & Web
(06-17-2014 10:54 AM)Coruja Wrote:  the uorenaissanse database is not too complex, but it has many tricks
like the paperdoll engine: we already have a SQL+PHP paperdoll working engine on sphere and we can write some info about items on the database (ID, name, durability, hue, ...). We can read all this thing and generate the paperdoll (gump) but we just don't know the trick to read items from tiledata instead gumps

but something I really like on this server is the world map, it show the entire server map on server page
http://www.uorenaissance.com/map
I have no idea how this works, probably UOAM server export many different img files on many zoom levels, and Google Maps API read all these imgs to generate the working map (because that's how Google Maps API works)

Actually there is no trick to read item art, the same way you can read the gump you can read the item; of course the file format is different but a look at UltimaSDK or any other UO dev kit/custom client will reveal how to read the file correctly

The map isn't that hard too, they generate a map image, then read the multi radarcol files to create houses radar view, save the image to a transparent layer and merge them using a javascript web application, HTML5 or whatever.

Yeah, this is a heavy coding but you have both UltimaSDK and PHP paperdoll in hands which combined may allow you to display the item/map by your own

-------
The guys from uo.cx created a web API that is capable of displaying Clilocs, Gumps, Item art, Item data, Multis and Texture on your web site
(no, the source code is not available)

Train Alchemy Cliloc >> http://uo.cx/api/v1/cliloc/3006000/

http://uo.cx/api/v1/gumpart/5504
http://uo.cx/api/v1/gumpart/5504/6/
[Image: 5504][Image: 6]

http://uo.cx/api/v1/itemart/5504
http://uo.cx/api/v1/itemart/5504/32/
[Image: 5504][Image: 32]

Item 5504 data >> http://uo.cx/api/v1/itemdata/5504/

http://uo.cx/api/v1/multiart/60/
http://uo.cx/api/v1/multiart/60/2/
[Image: 60][Image: 2]

http://uo.cx/api/v1/texture/5/
[Image: 5]

Feeh/Epila - Nightly releases / SphereWiki / Github Issues / Sphere's GitHub
(This post was last modified: 06-17-2014 12:25 PM by Feeh.)
06-17-2014 11:58 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 2 users Like Feeh's post
horadryn
Apprentice
*

Posts: 8
Likes Given: 2
Likes Received: 0 in 0 posts
Joined: Nov 2012
Reputation: 0



Post: #53
RE: [UPDATED]Paperdoll & Web
(06-16-2014 07:19 AM)Extreme Wrote:  This code is used to set the order of the layers to be shown at paperdoll.

What you want is needed to properly show the gumps at website.
Yes, I have it done and I am sure Coruja too.

I can't share it right now because I'm not home.. Maybe wednesday, I'm not sure.

Extreme! Do you remember?Cry
07-05-2014 07:01 PM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #54
RE: [UPDATED]Paperdoll & Web
Sorry man, here is the code:

PHP Code:
[DEFNAME player_layers]
player_layer_1 3
player_layer_2 4
player_layer_3 5
player_layer_4 8
player_layer_5 14
player_layer_6 15
player_layer_7 16
player_layer_8 17
player_layer_9 18
player_layer_10 20
player_layer_11 7
player_layer_12 19
player_layer_13 13
player_layer_14 23
player_layer_15 10
player_layer_16 24
player_layer_17 22
player_layer_18 11
player_layer_19 6
player_layer_20 12
player_layer_21 1
player_layer_22 2
player_layer_23 9
player_layer_24 21

// code to add the layers.. I recommend use under @login
DB.EXECUTE DELETE FROM characters_layers WHERE char_id='<dUID>'
FOR X 1 24
 
IF <FINDLAYER.<dDEF.PLAYER_LAYER_<dLOCAL.X>>> && !<dLOCAL.<dLOCAL.X>> && <dDEF.PLAYER_LAYER_<dLOCAL.X>> != 21
  REF1 
<FINDLAYER.<dDEF.PLAYER_LAYER_<dLOCAL.X>>.UID>
  
DB.EXECUTE INSERT INTO characters_layers (char_idsequencelayer_iditem_iditem_hueVALUES ('<dREF1.CONT.UID>','<dLOCAL.X>','<dDEF.PLAYER_LAYER_<dLOCAL.X>>','<dREF1.ID>','<dREF1.COLOR>'//
 
ENDIF
ENDFOR 

Here is the php thing
PHP Code:
"SELECT item_id,item_hue,layer_id FROM characters_layers WHERE char_id=$id ORDER BY  sequence ASC" 

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
07-06-2014 01:02 AM
Find all posts by this user Like Post Quote this message in a reply
horadryn
Apprentice
*

Posts: 8
Likes Given: 2
Likes Received: 0 in 0 posts
Joined: Nov 2012
Reputation: 0



Post: #55
RE: [UPDATED]Paperdoll & Web
thanks!


PS

Sorry for the question (probably stupid), but which is the difference between dUID and UID? I searched in the wiki, but I havent found nothing
(This post was last modified: 07-08-2014 07:55 PM by horadryn.)
07-07-2014 06:11 PM
Find all posts by this user Like Post Quote this message in a reply
Avatar
Journeyman
*

Posts: 172
Likes Given: 6
Likes Received: 27 in 12 posts
Joined: Apr 2012
Reputation: 5

The North Shield

Post: #56
RE: [UPDATED]Paperdoll & Web
<dUID> == <eval <UID>> (same) and As I stated at front page instruction on this topic ;

"Mainly item id is operated in php script according to decimal value. Therefore you should change id value to decimal."
(This post was last modified: 07-09-2014 08:18 AM by Avatar.)
07-09-2014 06:17 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Avatar's post
horadryn
Apprentice
*

Posts: 8
Likes Given: 2
Likes Received: 0 in 0 posts
Joined: Nov 2012
Reputation: 0



Post: #57
RE: [UPDATED]Paperdoll & Web
sooo.... <dCOLOR> == <eval <color>>?
07-12-2014 11:55 PM
Find all posts by this user Like Post Quote this message in a reply
Feeh
Sphere Developer
*****

Posts: 156
Likes Given: 6
Likes Received: 40 in 29 posts
Joined: Sep 2012
Reputation: 4



Post: #58
RE: [UPDATED]Paperdoll & Web
Every <dANYTHING_HERE> will convert the ANYTHING_HERE into decimal
<uid> = 0abc
<duid> = 2748
Even that the results looks different, they have the same value/meaning.
It could be uid, src, argn, argv[], tag, ctag, function...anything

http://wiki.sphere.torfo.org/index.php/Chapter_1

Feeh/Epila - Nightly releases / SphereWiki / Github Issues / Sphere's GitHub
(This post was last modified: 07-13-2014 01:38 AM by Feeh.)
07-13-2014 01:36 AM
Find all posts by this user Like Post Quote this message in a reply
admin_teclis
Journeyman
*

Posts: 51
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Aug 2012
Reputation: 0

Age of Apocalypse

Post: #59
RE: [UPDATED]Paperdoll & Web
Hi to all,
i have an error whit the skills now... this is error :

PHP Code:
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','1','Alchemy')" failed due to "Incorrect integer value: 'Alchemy' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','2','Anatomy')" failed due to "Incorrect integer value: 'Anatomy' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','3','AnimalLore')" failed due to "Incorrect integer value: 'AnimalLore' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','4','Taming')" failed due to "Incorrect integer value: 'Taming' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','5','Archery')" failed due to "Incorrect integer value: 'Archery' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','6','ArmsLore')" failed due to "Incorrect integer value: 'ArmsLore' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','7','Begging')" failed due to "Incorrect integer value: 'Begging' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','8','Blacksmithing')" failed due to "Incorrect integer value: 'Blacksmithing' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','9','Bowcraft')" failed due to "Incorrect integer value: 'Bowcraft' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','10','Camping')" failed due to "Incorrect integer value: 'Camping' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','11','Carpentry')" failed due to "Incorrect integer value: 'Carpentry' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','12','Cartography')" failed due to "Incorrect integer value: 'Cartography' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','13','Cooking')" failed due to "Incorrect integer value: 'Cooking' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','14','DetectingHidden')" failed due to "Incorrect integer value: 'DetectingHidden' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','15','Enticement')" failed due to "Incorrect integer value: 'Enticement' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','16','EvaluatingIntel')" failed due to "Incorrect integer value: 'EvaluatingIntel' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','17','Fencing')" failed due to "Incorrect integer value: 'Fencing' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','18','Fishing')" failed due to "Incorrect integer value: 'Fishing' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','19','Forensics')" failed due to "Incorrect integer value: 'Forensics' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','20','Healing')" failed due to "Incorrect integer value: 'Healing' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','21','Herding')" failed due to "Incorrect integer value: 'Herding' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','22','Hiding')" failed due to "Incorrect integer value: 'Hiding' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','23','Inscription')" failed due to "Incorrect integer value: 'Inscription' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','24','ItemId')" failed due to "Incorrect integer value: 'ItemId' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','25','Lockpicking')" failed due to "Incorrect integer value: 'Lockpicking' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','26','Lumberjacking')" failed due to "Incorrect integer value: 'Lumberjacking' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','27','MaceFighting')" failed due to "Incorrect integer value: 'MaceFighting' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','28','Magery')" failed due to "Incorrect integer value: 'Magery' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','29','Meditation')" failed due to "Incorrect integer value: 'Meditation' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','30','Mining')" failed due to "Incorrect integer value: 'Mining' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','31','Musicianship')" failed due to "Incorrect integer value: 'Musicianship' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','32','Parrying')" failed due to "Incorrect integer value: 'Parrying' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','33','Peacemaking')" failed due to "Incorrect integer value: 'Peacemaking' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','34','Poisoning')" failed due to "Incorrect integer value: 'Poisoning' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','35','Provocation')" failed due to "Incorrect integer value: 'Provocation' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','36','RemoveTrap')" failed due to "Incorrect integer value: 'RemoveTrap' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','37','MagicResistance')" failed due to "Incorrect integer value: 'MagicResistance' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','38','Snooping')" failed due to "Incorrect integer value: 'Snooping' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','39','SpiritSpeak')" failed due to "Incorrect integer value: 'SpiritSpeak' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','40','Stealing')" failed due to "Incorrect integer value: 'Stealing' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','41','Stealth')" failed due to "Incorrect integer value: 'Stealth' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','42','Swordsmanship')" failed due to "Incorrect integer value: 'Swordsmanship' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','43','Tactics')" failed due to "Incorrect integer value: 'Tactics' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','44','Tailoring')" failed due to "Incorrect integer value: 'Tailoring' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','45','TasteId')" failed due to "Incorrect integer value: 'TasteId' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','46','Tinkering')" failed due to "Incorrect integer value: 'Tinkering' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','47','Tracking')" failed due to "Incorrect integer value: 'Tracking' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','48','Veterinary')" failed due to "Incorrect integer value: 'Veterinary' for column 'skill_value' at row 1"
19:15:ERROR:MySQL query "insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('1','49','Wrestling')" failed due to "Incorrect integer value: 'Wrestling' for column 'skill_value' at row 1" 

this error is not list a value of skill but the name.. why ?


i have try change the line of values skills but if add a > at end of line i have all skills 100 and not read the values...

not working char is female or male.. how do your have risolute this ?
(This post was last modified: 09-08-2014 03:44 AM by admin_teclis.)
09-08-2014 03:22 AM
Find all posts by this user Like Post Quote this message in a reply
admin_teclis
Journeyman
*

Posts: 51
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Aug 2012
Reputation: 0

Age of Apocalypse

Post: #60
RE: [UPDATED]Paperdoll & Web
If anyone has the script finished and fully working can you please upload it?
09-08-2014 04:23 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)