POLServer CMS

Here you can post about UO Tools not specific to POL, but to the UO Client. This includes map editors, custom clients, mul editors (except UOFiddler, use it's forum), and so on.

Moderator: POL Developer

boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

POLServer CMS

Post by boberski »

Howdy,

lately I was working on set of php classes to read mul files for website show. This is WIP but I want to share first results.

PAPERDOLL
This is a concept of showing players on website. It's not new but there was no such thing for POL. It has specific database for POL to export player data in const period of time. It is all generated in realtime base on what is in database.

Example:
Image
Image

I modified old php script to work with new TOL MUL files. It need to be fixed in some ways :)

GUMPS
We can also show specifc gump gfx with specific color we choose.

Example:
Image
Image
Image

ART
The same as with gump.

Example:
Image
Image
Image
There is also need to add multi read on which I do not work yet.

Any ideas or thoughts about this?
Last edited by boberski on Fri Sep 22, 2017 11:24 am, edited 15 times in total.
Harley
Forum Regular
Posts: 360
Joined: Sat Mar 18, 2006 1:41 am
Location: Germany

Re: PHP UO reader concept

Post by Harley »

boberski, this is fantastic!
Do you have version for .mul files?
I dream to realize this on my project!
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: PHP UO reader concept

Post by boberski »

This works only on mul files :) I will put it on some kind of repo when I finish several fixes.

EDIT
Several URL examples:

http://pol.uo.hyeah.pl/raw/paperdoll/id/1713700/
http://pol.uo.hyeah.pl/raw/gumpart/id/666/
http://pol.uo.hyeah.pl/raw/gumpart/id/666/hue/10/
http://pol.uo.hyeah.pl/raw/art/id/20/
Last edited by boberski on Fri Sep 22, 2017 11:25 am, edited 6 times in total.
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: PHP UO reader concept

Post by Yukiko »

It looks great Boberski!

I look forward to the finished project. Well, projects never truly are finished are they? There's always one more thing to do. :)
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: PHP UO reader concept

Post by boberski »

Yeah you are right, thats why I have list of things to fix before I will create git repository :P There is only 1 or 2 things left :)
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: PHP UO reader concept

Post by boberski »

https://github.com/TorchwoodPL/POLServer-CMS

Here you have! :) feel free to fork, add something and send me pull request :)
Last edited by boberski on Sun Jul 02, 2017 8:32 am, edited 2 times in total.
Harley
Forum Regular
Posts: 360
Joined: Sat Mar 18, 2006 1:41 am
Location: Germany

Re: PHP UO reader concept

Post by Harley »

boberski, awesome!
How did you do import into db?
Maybe you can share your script for all fields in db?
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: PHP UO reader concept

Post by Yukiko »

Thanks again Boberski.

I still bet you find more things to add :D
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: PHP UO reader concept

Post by boberski »

POL script is now WIP and will be added to repo as soon as I am done with it :) if you will to write something I will be more than happy to push it to git.
Harley
Forum Regular
Posts: 360
Joined: Sat Mar 18, 2006 1:41 am
Location: Germany

Re: PHP UO reader concept

Post by Harley »

I have an idea to make full char export with skills & stats.
If you already have a working script, I can try to modify it with some additional goals.
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: PHP UO reader concept

Post by boberski »

I was concentrating on php part for now so I was planning to work on pol script at the weekend. If you willing to write something on your own do it and maybe I will adjust it for rendering purpose.
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: PHP UO reader concept

Post by boberski »

I pushed first working wersion of POLScript to github!

EDIT:
It is connected to Alt Distro Test Shard and export characters every 30 minutes. Kiko here is you: Image
Last edited by boberski on Fri Sep 22, 2017 11:25 am, edited 6 times in total.
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: PHP UO reader concept

Post by Yukiko »

Looks good Boberski but I'm not sure you got my eyes right. I think they're a brighter shade of blue. Just kidding! :)

I only wish I was familiar with PHP and other web languages. I'm doing good being able to use BB Code on the forums. :P
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: PHP UO reader concept

Post by boberski »

There is quite a few updates PHP wise on project repo. Feel free to chec it out. I am now working on CMS system for it. Results will be visible in couple of days at git :)
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: PHP UO reader concept

Post by boberski »

I have pushed CMS based version, for now it only have same functionality as before. But it is builded around MVC (easy to add new modules), have subdomain support, admin panel and more. I will in future write proper readme file :)

Fo now if you wanna for some reason use this WIP version you only need to preapre config.ini with proper data, import database scheme to mysql, put POLScript inside POLl's pkg folder, edit settings.cfg and restart POL. Also you will need to upload mul files to uofoles dor on your webserver :)
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: PHP UO reader concept

Post by boberski »

Any feedback will be appreciated! :)
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: PHP UO reader concept

Post by Yukiko »

Added the repo to my local repos directory so now I'll stay up-to-date with your commits.

I can see this becoming something much bigger and very useful for shards. It could be expanded to a general "info about the shard" section featuring things like the NPC types, special weapons featured, displays of maps especially for shards that use custom maps. NPC spawn locations overlayed on maps. It has great potential.
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: PHP UO reader concept

Post by Yukiko »

I currently use Simple Machines forums as my forum software. Do you suggest I create a separate SQL database for this or can I just add the SQL info to my existing forum database? As I said before, when it comes to web design and implementation I am pretty much a newbie. You would think at 58 years of age I would know more about web design but somehow I never learned.
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: PHP UO reader concept

Post by boberski »

You can add this to existing database no problem, script will autoinstall all model data to sql on first page run. For now you must also manualy import content of db.sql file, because I do not have models prepare for it yet :) But it will be also automated :)
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: PHP UO reader concept

Post by boberski »

Kiko: on git you have version wit database schema autoinstaller. If you used my script before you need to delete cache/model.installed if you have that file (I do not know what commit you have on your hosting) and reenter main page, it will install all model schema to database.
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm
Location: San Antonio, Texas
Contact:

Re: PHP UO reader concept

Post by Yukiko »

Fortunately I am working on a POL related project right now that is keeping me busy so I haven't added your project to my website yet. Hopefully I can finish my project soon and have some time to actually play around with your PHP UO reader. Unfortunately don't expect me to come up with any enhancements to it because, as I've too often said, I don't do web programming but I can play with anything that gets added to it.
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: PHP UO reader concept

Post by boberski »

I renamed project on github so repo URl also change.
RusseL
Forum Regular
Posts: 375
Joined: Fri Feb 20, 2009 8:30 pm

Re: POLServer CMS

Post by RusseL »

Andenix already did something like you, at least reading of MULs with php

http://legendaryuo.xyz/megamul/megamul. ... 9&hue=1200
http://legendaryuo.xyz/megamul/megamul. ... 9&hue=1500

parameters:
int static
or
int tile
or
int mobile

int hue
bool transparent
double scale

i can ask for a github link if you interested
boberski
Grandmaster Poster
Posts: 275
Joined: Tue Oct 15, 2013 12:00 pm

Re: POLServer CMS

Post by boberski »

That would be great! I would be happy to check mobile and multi reading :)
RusseL
Forum Regular
Posts: 375
Joined: Fri Feb 20, 2009 8:30 pm

Re: POLServer CMS

Post by RusseL »

boberski wrote: Mon Jul 03, 2017 9:56 am That would be great! I would be happy to check mobile and multi reading :)
Here you go
https://bitbucket.org/ivanovar-08/megamul

But, no reader of multis there - tiles, items and mobiles only
Post Reply