RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

html generation from mob *.cs scripts

Pyro-Tech

Knight
i thought you were supposed to run the csmob2html file, and within that, it runs the mulext file.

and if that isn't it, i know when i did run the csmob2html i had to type perl in front of it with a space

Code:
c:\whatever\perl csmob2html.pl

or something like that

and in dos i thought you had to put the file extension at the end too?

i could be wrong.....just saying what i am understanding
 

twig

Wanderer
KillerBeeZ said:
this is the cfg

Code:
# path to ultima online client (i test this only on 2d client installation)
# comment this line if you dont want generate pictures
# ïóòü ê êëèåêòó óëüòèìû îêëêéê (òåñòèðîâêëîñü òîëüêî êê 2ä êëèåêòå)
# çêêîììåêòèðóéòå ýòó ñòðîêó åñëè âêì êå êóæêû êêðòèêêè

uopath = "C:\TEMP\UO"

# path to output / âûõîäêîé êêòêëîã

output = "C:\TEMP\html"

# one line long path to *.cs scripts / îäêîé ñòðîêîé ïóòè ê ñêðèïòêì ñóùåñòâ
# for example: / êêïðèìåð:
# input = c:/runuo/scripts/test/;c:/runuo/scripts/custom/

input = "C:\TEMP\Scripts"

# index file name / èìÿ èêäåêñêîãî ôêéëê

index = index.shtml

# base classes / áêçîâûå êëêññû
# for example: / êêïðèìåð:
# baseclasses = BaseCreature;BaseYouWish

baseclasses = BaseCreature

# text labels / ëåéáëû

PICLABEL = Picture
STRLABEL = Str
DEXLABEL = Dex
INTLABEL = Int
DMGLABEL = Damage
FAMELABEL = Fame
KARMALABEL = Karma
ADAMAGELABEL = Attack
RESISTLABEL = Resistance
SKILLLABEL = Skills
MINTAMELABEL = Min. to tame
SLOTSLABEL = Control Slots
ARMORLABEL = Armor
ATTACKDAMAGE = Attack
RESISTANCE = Resistance
SKILLS = Skills
PHYSICAL = Physical
FIRE = Fire
COLD = Cold
POISON = Poison
ENERGY = Energy
INFO = This page is autogenerated by <a href="http://www.runuo.com/forum/showthread.php?t=38392">csmob2html</a>


is it something I'm doing?


in your paths use this slash / .. Windows does use the \ slash, but this is perl. And you also should need the trailing slash...
for example ...
Code:
C:/TEMP/Scripts/


Pyro-Tech said:
i thought you were supposed to run the csmob2html file, and within that, it runs the mulext file.
Yes.. this is what you are supposed to do.
 

x-ray

Wanderer
KillerBeeZ said:
I'm still getting an error .....

this error

Code:
C:\Documents and Settings\KillerBeeZ>"C:\Documents and Settings\KillerBeeZ\Deskt
op\HTML temp\mulext.exe"
*** Mul Extractor v.1.0beta
*** Usage: mulext [path to uo][animation mul number][id][output filename]<hue>
*** Feedback: jm aka x-ray (jm99[at]mail333.com)
*** WARNING ! HUE parameter ignored in this version !

C:\Documents and Settings\KillerBeeZ>

this is the cfg

<<skipped>>

is it something I'm doing?

Try to add to all paths ending slashes. For example:

somepath=c:/tempuo/

(I prefer slashes but ot backslashes in the paths :))

and run csmob2html again, i think this time everythibg be ok...
 

LordHogFred

Knight
What am I doing wrong it still doesn't produce pictures :confused:

This is my config.cfg:

Code:
# path to ultima online client (i test this only on 2d client installation)
# comment this line if you dont want generate pictures
# ïóòü ê êëèåÃ*òó óëüòèìû îÃ*ëÃ*éÃ* (òåñòèðîâÃ*ëîñü òîëüêî Ã*Ã* 2ä êëèåÃ*òå)
# çÃ*êîììåÃ*òèðóéòå ýòó ñòðîêó åñëè âÃ*ì Ã*Ã¥ Ã*óæÃ*û êÃ*ðòèÃ*êè

uopath = D:/Ultima Online 2D/

# path to output / âûõîäÃ*îé êÃ*òÃ*ëîã

output = C:/csmob2html/out/

# one line long path to *.cs scripts / îäÃ*îé ñòðîêîé ïóòè ê ñêðèïòÃ*ì ñóùåñòâ
# for example: / Ã*Ã*ïðèìåð:
# input = c:/runuo/scripts/test/;c:/runuo/scripts/custom/

input = C:/Program Files/RunUO Software Team/RunUO 1.0 RC0/Scripts/Mobiles/Monsters/

# index file name / èìÿ èÃ*äåêñÃ*îãî ôÃ*éëÃ*

index = index.html

# base classes / áÃ*çîâûå êëÃ*ññû
# for example: / Ã*Ã*ïðèìåð:
# baseclasses = BaseCreature;BaseYouWish

baseclasses = BaseCreature

# text labels / ëåéáëû

PICLABEL = Picture
STRLABEL = Str
DEXLABEL = Dex
INTLABEL = Int
DMGLABEL = Damage
FAMELABEL = Fame
KARMALABEL = Karma
ADAMAGELABEL = Attack
RESISTLABEL = Resistance
SKILLLABEL = Skills
MINTAMELABEL = Min. to tame
SLOTSLABEL = Control Slots
ARMORLABEL = Armor
ATTACKDAMAGE = Attack
RESISTANCE = Resistance
SKILLS = Skills
PHYSICAL = Physical
FIRE = Fire
COLD = Cold
POISON = Poison
ENERGY = Energy
INFO = This page is autogenerated by <a href="http://www.runuo.com/forum/showthread.php?t=38392">csmob2html</a>

Please help,
 

x-ray

Wanderer
LordHogFred said:
Please help,

From the first look the config is ok. Is the csmob2html produce any output when you run it ?
Check the script produced any html pages. If it does, this looks like the problem in the path to uo client or with the uo 2d client itself (as i mention in manual i didnt test this on 3d client resources).
If even no pages generated check the existence of the output path, also try to run any over simple perl proggy, for example like this:

Code:
print STDOUT "Hello world !";

Save this like to a file called for example test.pl and run it. If you don't see 'Hello world !' output, than you have a problem with perl or dont know how to run perl scripts...
 

Greystar

Wanderer
Below is my config file that got me the pics I have on my site... some are still missing, havnt checked to see if the current DL is different from the one I have but its still cool to have the pics with the monsters now.

Code:
# path to ultima online client (i test this only on 2d client installation)
# comment this line if you dont want generate pictures
# ïóòü ê êëèåÃ*òó óëüòèìû îÃ*ëÃ*éÃ* (òåñòèðîâÃ*ëîñü òîëüêî Ã*Ã* 2ä êëèåÃ*òå)
# çÃ*êîììåÃ*òèðóéòå ýòó ñòðîêó åñëè âÃ*ì Ã*Ã¥ Ã*óæÃ*û êÃ*ðòèÃ*êè

uopath = "D:/Ultima Online/"

# path to output / âûõîäÃ*îé êÃ*òÃ*ëîã

output = C:/RunUO/out/

# one line long path to *.cs scripts / îäÃ*îé ñòðîêîé ïóòè ê ñêðèïòÃ*ì ñóùåñòâ
# for example: / Ã*Ã*ïðèìåð:
# input = c:/runuo/scripts/test/;c:/runuo/scripts/custom/

input = C:/RunUO/Scripts/

# index file name / èìÿ èÃ*äåêñÃ*îãî ôÃ*éëÃ*

index = index.html

# base classes / áÃ*çîâûå êëÃ*ññû
# for example: / Ã*Ã*ïðèìåð:
# baseclasses = BaseCreature;BaseYouWish

baseclasses = BaseCreature

# text labels / ëåéáëû

PICLABEL = Picture
STRLABEL = Str
DEXLABEL = Dex
INTLABEL = Int
DMGLABEL = Damage
FAMELABEL = Fame
KARMALABEL = Karma
ADAMAGELABEL = Attack
RESISTLABEL = Resistance
SKILLLABEL = Skills
MINTAMELABEL = Min. to tame
SLOTSLABEL = Control Slots
ARMORLABEL = Armor
ATTACKDAMAGE = Attack
RESISTANCE = Resistance
SKILLS = Skills
PHYSICAL = Physical
FIRE = Fire
COLD = Cold
POISON = Poison
ENERGY = Energy
INFO = This page is autogenerated by <a href="http://www.runuo.com/forum/showthread.php?t=38392">csmob2html</a>
 

x-ray

Wanderer
Greystar said:
Below is my config file that got me the pics I have on my site... some are still missing

Missing pictures bug fixed in 0.55 release :) Just rerun script with this version...
 

LordHogFred

Knight
my config is producing all the pages correctly but not the pictures. I have the stats of all the mobs that I have chosen but none of them have pcitures, the mulext doesn't even seem to be running when I use csmob2htm;.pl
 

KillerBeeZ

Knight
C:\TEMP\csmob2html.pl
Backslash found where operator expected at - line 1, near "TEMP\"
C:/TEMP/csmob2html.pl
Bareword found where operator expected at - line 2, near "/TEMP/csmob2html"
(Missing operator before b2html?)
C:csmob2html.pl
C:\Perl\bin\csmob2html.pl
Backslash found where operator expected at - line 4, near "Perl\"
Backslash found where operator expected at - line 4, near "bin\"
C:/Perl/bin/csmob2html.pl
Bareword found where operator expected at - line 5, near "/Perl/bin"
(Missing operator before bin?)



I really have no idea how to use perl, I got the original version of this to work when you 1st created it, but can't seem to get this one to work.

All paths are correct in the cfg, I just don't know how to run the program, or at least it doesn't seem like I do.
 

x-ray

Wanderer
LordHogFred said:
my config is producing all the pages correctly but not the pictures. I have the stats of all the mobs that I have chosen but none of them have pcitures, the mulext doesn't even seem to be running when I use csmob2htm;.pl

Do you have mulext.exe in the same folder as csmob2html.pl ?
Again, check this line in your config:

uopath = D:/Ultima Online 2D/

Make sure uo *.mul's are located in there are.

Check for no spaces after ending slash in the path - delete them if you have any.
I will include in the next version path validation and trimming routines, but for now hope this workaround helps you.
 

x-ray

Wanderer
KillerBeeZ said:
C:\TEMP\csmob2html.pl
Backslash found where operator expected at - line 1, near "TEMP\"
C:/TEMP/csmob2html.pl
Bareword found where operator expected at - line 2, near "/TEMP/csmob2html"
(Missing operator before b2html?)
C:csmob2html.pl
C:\Perl\bin\csmob2html.pl
Backslash found where operator expected at - line 4, near "Perl\"
Backslash found where operator expected at - line 4, near "bin\"
C:/Perl/bin/csmob2html.pl
Bareword found where operator expected at - line 5, near "/Perl/bin"
(Missing operator before bin?)



I really have no idea how to use perl, I got the original version of this to work when you 1st created it, but can't seem to get this one to work.

All paths are correct in the cfg, I just don't know how to run the program, or at least it doesn't seem like I do.

just type this line from the folder csmob2html resides:

c:\somewhere\>c:\perl\bin\perl csmob2html.pl

Hope this helps.
 

x-ray

Wanderer
Version 0.56 reposted.
* Again fixed some bug with mulext call from the script
* Added AOS monsters picture extraction support
* Fixed small bug in mulext

This version should resolve the picture extraction problem.

Looks like i find out the reason why the pictures can not be generated. This is related with strange behavior of command processor on windows (at least at w2k with sp4).
If you extract csmob2html to folder with spaces, for example "c:/ext tool/" try to run mulext like csmob2html do:
"c:/ext tool/mulext" "c:/uo/" 0 110 "c:/ext tool/out/"
you will catch an error, but this one works fine:
"c:/ext tool/mulext"
As a result i cant supply parameters if any spaces in the path...

btw, can anybody drop here a link to the pages and pics generated by latest version of this script ? I will post this link in the first message like example of the script output. Thanks.
 

twig

Wanderer
I have been realy enjoying you making this system.. i have been testing with it since you first posted it. I was about to start making my own list of creatures like this *gasp* by hand!! *eek* So this is a life saver..

One suggestion would be.. if the pictures can be generated in jpg format. Jpg is a much more web friendly format, and smaller in size.

One bug I can pick out right now is that when the HTML files are generated.. after the <%TABLERESIST%>, the <%TABLEATTACK%> and the <%TABLESKILLS%> tables.. </table> is generated twice! (See example1) That will mess with people using other tables to format things more.

Example1
Code:
<table border="1" cellspacing="0" cellpadding="2" bgcolor="black">
<tr><th>Resistance</th><th>*</th>
<tr><td>Physical</td><td>45-50</td></tr>
<tr><td>Fire</td><td>30-40</td></tr>
<tr><td>Cold</td><td>25-35</td></tr>
<tr><td>Poison</td><td>30-40</td></tr>
<tr><td>Energy</td><td>30-40</td></tr>
</table></table>

About that link you want to a created list.. do you want the list to be "stock" looking? The setup I am making for my shard is formated to look like the rest of our website.. http://Alterra.Twigsjoint.com open "Inhabitants" then click "Critters".
 

x-ray

Wanderer
Version 0.6 reposted.
* Output images now produced in jpg format
* Fixed template parser function (Thanks to twig !)
* Small additions to config reader

Please read warning at the beggining of the first post.
 

Pyro-Tech

Knight
i have yet to ever get the pictures to generate....i even tried it as a one word as you had said it might be due to spaces in the file name

what else could it be?? i just get the red X
 

x-ray

Wanderer
Pyro-Tech
The only way i can suggest is try to resolve the problem together. Drop me a private message with your icq number and i will contact you in a few days.
 

x-ray

Wanderer
twig said:
version 0.6 is working great for me so far.. I have the updated output live on my site (http://Alterra.twigsjoint.com click Inhabitants then Critters).

Wish I had the knowledge to help out with the body.cfg to get the rest of the pictures.

The problem with the bodys not the primary, i wish i could undrstand how to hues are applyed :) I will ask this on some of the developer subforums here. Or its time to ask Phantom as i remember he write some kind of InsideUO clone :)

btw, twig are you the one who was mentioned in the UOX docs manual ? :)
 

twig

Wanderer
x-ray said:
btw, twig are you the one who was mentioned in the UOX docs manual ? :)

Yep.. thats me. I helped out as much as I could with UOX back in the day.. Wrote a bunch of the Help Files. As limited as the UOX scripting system was back then, it was easy for me to use in a very complicated way others did not think of. I have many awsome ideas ready to script for RunUO, but still learning the basics with C#. hehehe

Alterra (my shard) was about the biggest one back then, we pretty much were the shard that gave the UOX devs all their input and did all the big player testing. I remember helping with many programs as they were made that are used everyday now (InsideUO, UOGateway, all the goods ones :D ). *ramble ramble* Anyone here remember when UOGateway only had 2 servers listed?? hehehe

The problem with the bodys not the primary, i wish i could undrstand how to hues are applyed :) I will ask this on some of the developer subforums here. Or its time to ask Phantom as i remember he write some kind of InsideUO clone :)

Yeah, the hues will be nice. Especially with custom creatures using the same body as an older creature, but the hue is what gives the fealing of the new creature.
 
Top