RE: [UPDATED]Paperdoll & Web - Coruja - 06-17-2014 10:54 AM
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)
RE: [UPDATED]Paperdoll & Web - Feeh - 06-17-2014 11:58 AM
(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/
http://uo.cx/api/v1/itemart/5504
http://uo.cx/api/v1/itemart/5504/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/
http://uo.cx/api/v1/texture/5/
RE: [UPDATED]Paperdoll & Web - horadryn - 07-05-2014 07:01 PM
(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?
RE: [UPDATED]Paperdoll & Web - Extreme - 07-06-2014 01:02 AM
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_id, sequence, layer_id, item_id, item_hue) VALUES ('<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"
RE: [UPDATED]Paperdoll & Web - horadryn - 07-07-2014 06:11 PM
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
RE: [UPDATED]Paperdoll & Web - Avatar - 07-09-2014 06:17 AM
<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."
RE: [UPDATED]Paperdoll & Web - horadryn - 07-12-2014 11:55 PM
sooo.... <dCOLOR> == <eval <color>>?
RE: [UPDATED]Paperdoll & Web - Feeh - 07-13-2014 01:36 AM
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
RE: [UPDATED]Paperdoll & Web - admin_teclis - 09-08-2014 03:22 AM
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 ?
RE: [UPDATED]Paperdoll & Web - admin_teclis - 09-08-2014 04:23 AM
If anyone has the script finished and fully working can you please upload it?
|