we're doing this man. (AoS 0.75 Powerthirst Edition)

External additional handy features.
62 posts Page 2 of 5 First unread post
Jdrew
Mapper
Mapper
Posts: 4808
Joined: Tue Oct 30, 2012 10:48 pm


Your amazing Blue_Happy3
mylesd98
Winter Celebration 2013
Winter Celebration 2013
Posts: 86
Joined: Sun Apr 28, 2013 3:25 pm


[Deleted]
Last edited by mylesd98 on Fri Jun 23, 2023 2:11 pm, edited 1 time in total.
mylesd98
Winter Celebration 2013
Winter Celebration 2013
Posts: 86
Joined: Sun Apr 28, 2013 3:25 pm


[Deleted]
Last edited by mylesd98 on Fri Jun 23, 2023 2:11 pm, edited 1 time in total.
Jdrew
Mapper
Mapper
Posts: 4808
Joined: Tue Oct 30, 2012 10:48 pm


mylesd98 wrote:
Oh, also, will there be a way for you to make .gif files work for the usual jpg files instead? because a realistic scope would be much more realistic if it where to move slightly while aiming :D
*also sorry for double post :/*
That is why Jagex uses Kv6 files as scopes
GreaseMonkey
Coder
Coder
Posts: 733
Joined: Tue Oct 30, 2012 11:07 pm


mylesd98 wrote:
Oh, also, will there be a way for you to make .gif files work for the usual jpg files instead? because a realistic scope would be much more realistic if it where to move slightly while aiming :D
*also sorry for double post :/*
I just checked and the scopes are PNG, not JPEG. Adding APNG support would be a better option, seeing as kplib probably doesn't handle animated GIF files. Having said that, I'm probably not going to bother. Stick your monitor on a really fat spring and poke it around.

I'm tempted to allow normal-mapped scopes for realism, but that's a bit of a pipedream at the moment as, well, that requires effort. (Plus I'm not a "realism whore".)
Sonarpulse
Coder
Coder
Posts: 443
Joined: Thu Dec 13, 2012 7:18 pm


kplib supports normal GIF at least, not like that's of any use.
GreaseMonkey
Coder
Coder
Posts: 733
Joined: Tue Oct 30, 2012 11:07 pm


2013-05-11-00 released, featuring:
- smaller .exe!
- server->client versioning system!
- better lockout of non-PT clients on PT servers!
- long names are disabled if you join servers that don't have the extra field.
Sonarpulse
Coder
Coder
Posts: 443
Joined: Thu Dec 13, 2012 7:18 pm


Merged your pull request, and sent you one of minit's stuff and one of lensman's stuff: lensman was working a server that would connect to both 0.75 and 0.76, I figure this might be of some use to you and PT.

There is one commit in there that I compensates for pyspades having fucked up line endings. We should fix that repository wide.

edit: line endings fixed, pull request is correct
GreaseMonkey
Coder
Coder
Posts: 733
Joined: Tue Oct 30, 2012 11:07 pm


(2013-05-13-00) I've updated the scripting API. Now you can screw with the player structure (to some extent), and add a couple of hooks (syh_tick, syh_chat) for FUN FUN FUN.

Main script on the server is in feature_scripts/ptscripts/main.as.
API is documented in the client package in PTAAPI.txt.

If you really need to change someone's nick, there's a new command, /sanick player newnick (stick newnick in quotes if you want to use it properly, player CAN be an #id), which will change their screenname.

There is some stuff missing in the player structure (marked 15 fields as "doesn't seem to do anything" and 3 as "changes but not sure why", plus the kv6 handles array hasn't been decoded yet) which would be good to find meanings for.

Anyhow, here's how to make the player fly when they spam space repeatedly!
Code: Select all
void syh_tick(float tick)
{
	player_t @p = player_get(curplr);
	p.inair = 0;
}
You'll have to fix this up on the server / Python side, too, but it works!
mylesd98
Winter Celebration 2013
Winter Celebration 2013
Posts: 86
Joined: Sun Apr 28, 2013 3:25 pm


[Deleted]
Last edited by mylesd98 on Fri Jun 23, 2023 2:11 pm, edited 1 time in total.
learn_more
Coder
Coder
Posts: 891
Joined: Sun Mar 24, 2013 9:59 pm


mylesd98 wrote:
Is there any way you could get modloader to work with this? the BNS launcher already works with it btw :)
not unless the binary would be almost exactly like the original one.
TB_
Post Demon
Post Demon
Posts: 998
Joined: Tue Nov 20, 2012 6:59 pm


If this is really working, there could always be an event where we would gather enough players for a big 32+ player match.
GreaseMonkey
Coder
Coder
Posts: 733
Joined: Tue Oct 30, 2012 11:07 pm


Eventually you wouldn't even need modloader (well OK, maybe for keeping chat logs, but we can always add features and whatnot).

Anyhow, I found the kv6 model stuff...
Image

This does need some method of adding kv6 models though, as the current API is somewhat limited.

(coming back to this post several hours later...) Yes, you can create kv6s in code. You DO need to understand the kv6 format, though.

I just uploaded 2013-05-14-00 with about 10 minutes to spare until tomorrow happens, so updating the link now.

TB: Yes, this is really working.
Sonarpulse
Coder
Coder
Posts: 443
Joined: Thu Dec 13, 2012 7:18 pm


Can you document any protocol changes/additions you make on rakiru's wiki?
GreaseMonkey
Coder
Coder
Posts: 733
Joined: Tue Oct 30, 2012 11:07 pm


Will this do?

EDIT: Mind pulling from my repo and merging the stuff The Right Way?
62 posts Page 2 of 5 First unread post
Return to “Add-ons & Tools”

Who is online

Users browsing this forum: No registered users and 8 guests