Server Help

ASSS Questions - [wanted] warpto-like module

CypherJF - Mon Jun 21, 2004 2:36 am
Post subject: [wanted] warpto-like module
Does anyone have, or would be willing to code an equivilant of *warpto coord coord, for me?

Specification: Subgame *Warpto # # can change the ship's direction, but I need it to set the ship at a specific coord, but keep the ship in it's normal moving direction... so I'm assuming all it needs to do is send out 1 packet updating the location of the player? It should more or less become "hop to" than warp to...

It'd be greatly appreciated.

Thanks.
SuSE - Mon Jun 21, 2004 3:07 am
Post subject:
ummm, talk to Dr Brain
CypherJF - Mon Jun 21, 2004 3:12 am
Post subject:
I've bugged brain too much already. icon_smile.gif I know he comes to the boards, so if he'd have a spare minute and would like to code it, that'd be cool. icon_smile.gif
50% Packetloss - Mon Jun 21, 2004 3:34 am
Post subject:
To whoever decides to code something like that for ASSS, add in some useful params. In-Game its imposable to figure out coords unless you are a bot, so maybe have the command take coords along with the radar coords such at H9 . Also maybe like a *warpto here and it will warp the player the area that the mod is looking at on his screen (in spec or in ship). I need to take a look at ASSS sooner or later to figure out what i can/can't do
SuSE - Mon Jun 21, 2004 5:03 am
Post subject:
I said talk to Dr Brain because afaik he's already coded basically just this

go into SSCX-A Hyperspace and try out the catapults (or whatever they're named now)
Dr Brain - Mon Jun 21, 2004 10:05 am
Post subject:
Code: Show/Hide

    int dest_x, dest_y, src_x, src_y;

    getCatapultCoords(dest_catapult, &dest_x, &dest_y);
    getCatapultCoords(source_catapult, &src_x, &src_y);

    int offset_x = (dest_x - src_x) * 16;
    int offset_y = (dest_y - src_y) * 16;

    struct S2CWeapons wpn = {
        S2C_WEAPON, p->position.rotation, current_ticks() & 0xFFFF, p->position.x + offset_x, p->position.yspeed,
            p->pid, p->position.xspeed, 0, p->position.status, 0, p->position.y + offset_y, p->position.bounty
        };

    DoChecksum(&wpn);
    net->SendToOne(p, (byte*)&wpn, sizeof(struct S2CWeapons) -
        sizeof(struct ExtraPosData), NET_PRI_P4);


If you're warping to a specific place, just replace the x and y positions with your absolute values. Remember that it's pixels, and not tiles. So *16.
CypherJF - Mon Jun 21, 2004 4:51 pm
Post subject:
Was thinking more or less a compiled DLL...

As there is no clear documentation on how to compile modules, or am I missing something somewhere? lol icon_smile.gif
D1st0rt - Mon Jun 21, 2004 9:38 pm
Post subject:
I'm lazy, I just use catids VS projects biggrin.gif
CypherJF - Mon Jun 21, 2004 9:50 pm
Post subject:
<< doesnt have the resources to run VS.net :/ or else he would.

Yes, I just spoke in third person. lol
D1st0rt - Mon Jun 21, 2004 9:56 pm
Post subject:
Maybe if someone had a makefile for DevC++ they could post it here

EDIT: I think Solo Ace had a makefile on his website, but its down now
Smong - Thu Jun 24, 2004 2:25 pm
Post subject:
To make a windows module just create a new dll project and add in your source files. You may have to add util.c and link to pthread.lib. (You probably won't want to mess with makefiles if this is for windows).
CypherJF - Thu Jun 24, 2004 3:44 pm
Post subject:
It was the including asss.h that was the issue i think; but after that it began missing other files and whatnots.. so i'm puttin it off for awhile
Solo Ace - Mon Jun 28, 2004 2:57 am
Post subject:
D1st0rt wrote:
Maybe if someone had a makefile for DevC++ they could post it here

EDIT: I think Solo Ace had a makefile on his website, but its down now

The DNS entry for my "website" was removed after the naughty things I did to T3G, I warned you there for it going down. icon_razz.gif
I put the new link in the post.
CypherJF - Mon Jun 28, 2004 5:13 am
Post subject:
I think you have a good start w/ that tutorial there icon_smile.gif

Now if only grel would have included those couple pages you wrote; it would have been nice icon_smile.gif
Solo Ace - Mon Jun 28, 2004 7:52 am
Post subject:
Heh, thank you.
It's only a start and well, since I quit I didn't get to update it much. icon_razz.gif
Maybe later today. icon_smile.gif
CypherJF - Mon Jun 28, 2004 10:00 pm
Post subject:
Seriously, a group of people who like ASSS should start really developing more complete guides. Grel can't do it all tongue.gif
D1st0rt - Tue Jun 29, 2004 8:49 am
Post subject:
Oooh! Part 3!
Solo Ace - Tue Jun 29, 2004 12:16 pm
Post subject:
Get lost! icon_razz.gif
Anonymous - Tue Jun 29, 2004 5:33 pm
Post subject:
Here's the thread for the ?moveto code:
http://forums.minegoboom.com/viewtopic.php?t=3004

The problem with a '?moveto here' argument is when in spec the client sends position packets less frequently producing undesirable results. Try ?dropturret from spec to see what I mean.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group