Jump to content

Webmap Script Modification.


DazzaJay

Recommended Posts

Hi, i was just wondering if somone is able to make a modified verson of the Webmap script, that can be shown to the public in a frame on my website.

this would also need the "send message to player" feature removed from it also.

Thanks in advance to anyone who is able to do this.

Link to comment

yeah mate, thats good.

if not too hard for somone can we get a webmap script modification, so it can be publicly shown, also the scoreboards, and also the Server Statistics?

(in 3 seperate

Thanks in advance to anyone who can pull this off.

Link to comment

all i did was put the map.htm in a frame, so you can see the map, but its not working, i did that as a "demo" because people often mis-understand what im trying to say.

i sent a PM to eAi (the creator of the webmap.....)

and heres the PM.

i noticed in the admin panel that you are the creator of the "Webmap" feature of DM.

and i was wondering, what would be involved (and also how to do it) in removing the "chat to player" box, and also making the live webmap viewable to the General Public in an

Thanks.

-Dan

I don't have time to modify it myself, but you can easily remove the chat box by modifying the javascript file in webmap and removing the exported function that it calls from the meta.xml.

i would really like to say i understand what hes saying... but i dont.

as for modifying the javascript... i tried opening it in notepad and its just random code..... and i dont know enough about either of them to work it out.

Link to comment

I'd emphasise that webmap was really a proof of concept and that it's not amazingly well coded. You could do a much better job yourself in a few hours if you know Javascript and LUA. I'd also point out that the server hosting the images is not that fast, you might want to host your own images using tilecache (free, open source).

Link to comment
I'd emphasise that webmap was really a proof of concept and that it's not amazingly well coded. You could do a much better job yourself in a few hours if you know Javascript and LUA. I'd also point out that the server hosting the images is not that fast, you might want to host your own images using tilecache (free, open source).

i would have done so if i knew anything about javascript or LUA, but sadly, i know bugger all about LUA.... hell, i know how to...... auctually, anything i know with LUA ive had to copy from somewhere else and make verry verry basic modifications to do what ive wanted... and javascript..... al i know about it is that notepad dosent open the files.

so im fucked ether way.

as i have asked in a lot of threads "how to do somthing that way out of my leigue" and i have made it clear that i know nothing, and people allways give awnsers that make absolutley no sence to me.

and its really just confusing me.

and i have no idea where to start with anything.

Link to comment
  • 2 months later...
If you would like, here is a better map. 2 different ones, labeled and unlabeled.

Blank - http://ian-albert.com/misc/gamemaps/gta ... nk-1.0.jpg

Labeled - http://ian-albert.com/misc/gamemaps/gta ... ll-1.0.jpg

It will look a lot nicer =)

thats already an option at the side theres a - click it and theres option for radar or normal

EDIT: as for the idea it might require more than editing web map since web admin and all that don't check independently if you are admin which results in people being able to start and stop resources

EDIT 2: if you really do need this i have uploaded an edited webmapthat doesn't have the chat you will need to edit your acl's so you can use a frame to embed it on a page

http://cazomino05.com/webmap.zip

EDIT 3: i guess i should tell you how to do that lol open your acl look for change to

EDIT 4: if you have any web scripts like resourcebrowser resourceadmin or anything like that you will probably need to disable them

Edited by Guest
Link to comment

Alright 50p just told me how to get around this

edit your default acl group adding

add this to any groups you want to be able to see theese resources

then my modifyed resource of the webmap script can be found at http://cazomino05.com/webmap.zip

if you are really lazy and haven't edited your acl or just want an example i also uploaded an example acl here: http://cazomino05.com/acl.xml

You can view the map at http://serverip:httpport/webmap/map.htm

for example

http://127.0.0.1:22005/webmap/map.htm

It is also available at http://community.mtasa.com/index.php?p= ... anddescr=1

Link to comment

I created webmap very quickly, really as a proof of concept. You're welcome to improve it, if you'd like alternative images hosted for it, send them to me and I can put them on the map server.

Link to comment

itsa a little short mate.

ive noticed when putting crap in an iframe, its best to have width as a % and the Height as an auctual pixel number..

the code for mine is

<iframe src="http://mta.potholestudios.com:33551/webmap/map.htm" width="100%" height="640"></iframe> 

that way it stretches to fit the width of the web page, and does not end up only 20 pixels high.

Link to comment
itsa a little short mate.

ive noticed when putting crap in an iframe, its best to have width as a % and the Height as an auctual pixel number..

the code for mine is

<iframe src="http://mta.potholestudios.com:33551/webmap/map.htm" width="100%" height="640"></iframe> 

that way it stretches to fit the width of the web page, and does not end up only 20 pixels high.

Yeah i was making mods to it when you must have looked at it lol

Better now :D

Added the scoreboard to it as well.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...