English French German Spanish Russian
PHP for skills - Web Apps - Ryzom Community ForumHomeGuest

Web Apps


uiWebPrevious12uiWebNext

#16 [en] 

Phileur (atys)
What i want to do is not only tanslate but expand shortcut scam and so on in full description : s for skill c for craft a for armour m for medium and so on.....

That info has no use. If you want to know skill level in say heavy armor helmet crafting, then you would check skill levels for schhem, schhe, schh, sch, sc and return first that matches.

I added skilltree display to ryzomapi_lite. Live version is available here.

Last edited by Karu (4 years ago)

---

Hello!

#17 [fr] 

First of all, thanks a lot for your help !! Thanks to you I’m able to do things I would never be able to do. A great pleasure but also many troubles because I use things I don’t understand.
Here is the best result I got : http://www.diavels.org/phpBB3/ryzom.php

I can’t use ryzom_extra and translate functions, it seems something goes wrong with the way I install (I don’t use json because I don’t know how it work).

I put :
- ryzomapi_lite.php → /lib
- ryzom_extra.php -> /lib
- resources -> /lib
- bin -> /lib
- skilltreeclass.php -> src

If I try to put a “require_once dirname(__FILE__) . '/lib/ryzom_extra.php'; I got error message like these :



Fatal error: Uncaught exception 'Exception' with message 'Data file [/Users/Phileur/Documents/phpBB3/lib/resources/sheets-cache/words __skill.serial] not found' in /Users/bertrandserullaz/Documents/phpBB3/lib/ryzom_extra.php:776 Stack trace: #0 /Users/ Phileur /Documents/phpBB3/lib/ryzom_extra.php(454): ryzom_extra_load_dataset('/Users/bertrand...') #1 /Users/ Phileur /Documents/phpBB3/src/skilltree.class.php(100): ryzom_translate('sf.skill', NULL) #2 /Users/ Phileur /Documents/phpBB3/src/skilltree.class.php(87): Skilltree::renderTree(Array, NULL) #3 /Users/ Phileur /Documents/phpBB3/ryzom.php(144): Skilltree::render(Object(SimpleXMLElement), NULL) #4 {main} thrown in /Users/ Phileur /Documents/phpBB3/lib/ryzom_extra.php on line 776

I have tried to understant ryzom_extra_load_dataset but definitly it’s too hard for me…

Edited 5 times | Last edited by Iwakura (4 years ago)

---

#18 [en] 

ryzom.php(144): Skilltree::render(Object(SimpleXMLElement), NULL)
You have language parameter undefined.

---

Hello!

#19 [fr] 

Indeed, it works !!! you are my hero
http://www.diavels.org/phpBB3/ryzom.php

---

#20 [fr] 

toc toc me again (never ending story :) )

about characteristics  is there already a function (kind of ryzom_render_charac()) to displays int, str,wisd...... and so on ?

if so, where ?

---

#21 [en] 

Phileur (atys)
about characteristics  is there already a function (kind of ryzom_render_charac()) to displays int, str,wisd...... and so on ?
nope, no such function

---

Hello!
uiWebPrevious12uiWebNext
 
Last visit Wed Jul 18 20:09:55 2018 UTC
P_:

powered by ryzom-api