JazzJackrabbit Community Forums

JazzJackrabbit Community Forums (http://www.jazz2online.com/jcf/index.php)
-   General Jazz Jackrabbit Talk (http://www.jazz2online.com/jcf/forumdisplay.php?f=4)
-   -   Upgrade Suggestions to GIP Script. (http://www.jazz2online.com/jcf/showthread.php?t=16303)

Nimrod Dec 7, 2006 04:37 PM

Upgrade Suggestions to GIP Script.
 
Was thinking, the Digiex GIP Script used on Jazz2online, Hazes Hideout, and many other sites out there is properly due to upgrade.

Is there any features or suggestions people can recommend?

Jerry made a post about uptimes being counted, instead of just the time at gip script view, that sounds like a good improvement :)

Any others people can suggest?

Birdie Dec 7, 2006 04:47 PM

It should ignore § and the character following it.

Cpp Dec 8, 2006 02:44 PM

Fix the bug that messes up the server query script when the server name contains weird ASCII characters.

Jerrythabest Dec 9, 2006 01:50 AM

I like Newspaz's fur coloring script. I also added some more information to the server information table on the popup of cataphract's script, as well as fixed some things in the player character data... the GIP script is even nicer then :) but first start with the uptime count, it doesn't seem to be too hard to make for people understanding javascript

Grytolle Dec 9, 2006 01:59 AM

...what I told you about css

Jerrythabest Dec 9, 2006 04:03 AM

what did you tell him about css? may we know that? :P

Grytolle Dec 9, 2006 04:17 AM

Well it should be easy to just make a css full with class information to design the GIP any way you want

FQuist Dec 9, 2006 08:53 AM

The GIP is better off with just pure HTML without inline markup and CSS classes, so that it is more lightweight. I know the GIP is like that because it's based on the J2O layout, but it's not entirely efficient. (why not J2O, too? our entire site would have to be remade)

Cpp Dec 9, 2006 08:55 AM

What FQuist said. ^^

Grytolle Dec 9, 2006 09:26 AM

Quote:

Originally Posted by Fquist
The GIP is better off with just pure HTML without inline markup and CSS classes, so that it is more lightweight. I know the GIP is like that because it's based on the J2O layout, but it's not entirely efficient. (why not J2O, too? our entire site would have to be remade)

You wouldn't have to change more than the GIP page

Jerrythabest Dec 9, 2006 01:59 PM

What are we talking about? It is impossible to have a GIP script that could be COMPLETELY modified with CSS, so that it could fit ANY website, unless you have a lot of time and full knowledge of the possibilities of CSS, and that each and every used tag has attributes class and ID set...
Next, a lightweight GIP script would mean one with set layout, possibly only the colors and borders and such could be changed with CSS, which means no site integration, only basic styling and features.
A good GIP script is one modified for the needs of ONE side, instead of having it either hard to style or hard to integrate with your site. So I'd say you'd just get a GIP script with as many features as you want and edit it, add counting uptimes to it, style it, integrate it, use it. Go Notepad.

FQuist Dec 9, 2006 07:14 PM

@Gry: didn't say so.

Monolith Dec 9, 2006 10:52 PM

How about making it an option that you can specify in the parameters of the GIP script to use CSS or not?

Jerrythabest Dec 10, 2006 02:12 AM

possibly, but I still prefer implementing it all, and thus editing it :P

Newspaz Dec 10, 2006 09:42 AM

How about people just making their own GIP scripts if they want something special.
If people really want to share they can always upload theirs on J2O. It's not like everyone is obligated to use Nimrod's.

He's just inquiring on what people would like.

Jerrythabest Dec 10, 2006 01:51 PM

Exactly. Finally someone who understands the use of implementing.

Puffie40 Dec 11, 2006 08:58 AM

Quote:

Is there any features or suggestions people can recommend?
Maybe a picture map of the current level?

Diplay IP of both servers and players?

Grytolle Dec 11, 2006 09:10 AM

...yes lag the server by downloading the entire level!

Jerrythabest Dec 11, 2006 09:58 AM

yeah, that'd be nonsense... how about points each player has (player team's points in CTF)

Puffie40 Dec 11, 2006 10:15 AM

Quote:

...yes lag the server by downloading the entire level!
No no. What I was thinking was a "Snapshot" of the layout. I could be made using ASCII if it would cut lag

Jerrythabest Dec 11, 2006 10:24 AM

you'll have to download the level from the server first anyway, and also the tileset for the masks

Strato Dec 11, 2006 02:21 PM

The snapshot sounds needlessly complicated, and not really useful. The only levels people play on are popular enough that people should already know them. Plus some berks occasionally make levels huge and hide big blocks of tiles in places to form words.

ThunderPX Dec 13, 2006 05:08 AM

The only way it would work is if it would only retrieve the filename and the maps were added manually to the script for popular levels.

Jerrythabest Dec 13, 2006 10:20 AM

yeah, but that would be a whole lot of work

Dermo Dec 15, 2006 01:36 PM

Quote:

Originally Posted by Strato
The snapshot sounds needlessly complicated, and not really useful. The only levels people play on are popular enough that people should already know them. Plus some berks occasionally make levels huge and hide big blocks of tiles in places to form words.

...actually i think it's quite a good idea...

just make a link that is labeled screenshot. Then the server's end would take a sceenshot (same as hitting PrintScrn) and the link you click will open another script that loads the image that the server was viewing.

I do realize this would be loads of working just finding the right script to do that but in the long run. If somebody's hacking there's your proof right there.

Jerrythabest Dec 16, 2006 11:00 AM

I don't think you can have a PHP script controlling jazz2 to make a screenshot and send it over ;P would be a HUGE hole in the security of both PHP and JJ2

Stijn Dec 16, 2006 11:20 AM

It's perfectly possible if the authors of Forest or Controller added such a feature to their programs. PHP sends a request, Forest/Controller intercepts it and sends back a screenshot.

Jerrythabest Dec 16, 2006 01:29 PM

but plain JJ2 can't do it :P

Erik Dec 16, 2006 02:09 PM

asm patching ehe]m

Grytolle Dec 16, 2006 02:57 PM

...or just da hook

blurredd Dec 17, 2006 06:25 PM

It would be more useful (and probably a lot easier to implement) if servers could send a customized message to the GIP script. Server names can only say so much.

Cpp Dec 18, 2006 12:22 AM

Well the problem is getting people to patch their jj2's to support the new features. That means the new scripts will not be as effective as one would expect. They can be easily implemented into a dedicated server, however.

Grytolle Dec 18, 2006 03:44 AM

I wouldn't mind including such a feature in 1.23+ and 1.24+, if you're willing to help me out with it, Overlord.

Jerrythabest Dec 18, 2006 07:48 AM

as if anyone uses those
Since I have no idea how popular those are, I'll just stay neutral :P it *could* be useful but I probably wouldn't put it in my GIP script unless it's going to be used commonly

Cpp Dec 18, 2006 10:34 AM

Before we each go into coding our own scripts, I think there should be a detailed community discussion about this. What is being suggested here goes into the topic of JJ2 TCP Protocol modification. Technically it is possible to do that, because there are numerous unused packet ID's that we can use for our scripts and I would strongly suggest that we categorize them and make a community-wide "standard" before writing any scripts that rely on them. Imagine what happens when every person attempts to make use of them on their own specifications.

Jerrythabest Dec 18, 2006 12:37 PM

TOTAL DESTRUCTION! Like 100k versions floating around all being compatible with only one GIP script :/

blurredd Dec 18, 2006 07:31 PM

Might as well start discussing the details of such a standard here. Any specific suggestions, Overlord?

Cpp Dec 19, 2006 12:55 AM

The first thing we should know is what IDs are already being used by jj2. I was working on a JJ2TCP documentation a while ago and I'll quote a part of it here.
Quote:

The packet ID byte allows up to 256 different numbers, but only a very narrow range is actually used – 0x0D to 0x1B (13 to 27 decimal) to be precise, the rest are unused.

IDFunctionTraffic
0x0D Error messageC<==S
0x0EClient detailsC==>S
0x0FJoin requestC==>S
0x10Server detailsC<==S
0x11Client join notifyC<==S
0x12Server player listC<==S
0x13Join process completeC<==S
0x14Data transmissionC<==S
0x15Download requestC==>S
0x16Level cycleC<==S
0x17Game overC<==S
0x18Status updateC<==S
0x19Server stoppedC<==S
0x1AStatus update requestC==>S
0x1BChatC<=>S

We have a lot of free packet ID's to use. JJ2 itself will currently ignore the unused so that's a good thing. Now the task is to assign a "use" (purpose) to each unused ID and make standard of it... sort of like the table shown above. I suggest we first make a list of features and possibilities. However, this is where my imagination ends. Neobeo might want to share some ideas for his dedicated server extended functionality.

blurredd Dec 19, 2006 06:45 AM

It would be particularly useful to be able to change the colors of clients names without the use of pipes. Not being able to do this is part of the reason why I haven't finished gamemodes like LRS and Jailbreak for my program. Although it would be better to incorporate name changes with specific custom gametypes, this would be easier to implemenent in the short run.

I suppose spectator mode should go somewhere in there. All this discussion should go in its seperate topic though.

Torkell Dec 19, 2006 08:44 AM

Regardless of what we come up with, I suggest we earmark a range for testing purposes. Say define 0xF0 ... 0xFF as private testing. That way people can experiment with the protocol without intefering with anything else.


All times are GMT -8. The time now is 11:37 AM.

Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
JCF © 2001-Infinity Jazz2Online