Author |
Message |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: 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. _________________ Performance is often the art of cheating carefully. - James Gosling |
|
Back to top |
|
 |
SuSE Me measures good

Joined: Dec 02 2002 Posts: 2307 Offline
|
Posted: Mon Jun 21, 2004 3:07 am Post subject: |
 |
|
|
|
ummm, talk to Dr Brain |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Mon Jun 21, 2004 3:12 am Post subject: |
 |
|
|
|
I've bugged brain too much already. 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.  |
|
Back to top |
|
 |
50% Packetloss Server Help Squatter

Age:40 Gender: Joined: Sep 09 2003 Posts: 561 Location: Santa Clarita, California Offline
|
Posted: 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 |
|
Back to top |
|
 |
SuSE Me measures good

Joined: Dec 02 2002 Posts: 2307 Offline
|
Posted: 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) |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Mon Jun 21, 2004 10:05 am Post subject: |
 |
|
|
|
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. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: 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  |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Mon Jun 21, 2004 9:38 pm Post subject: |
 |
|
|
|
I'm lazy, I just use catids VS projects  _________________
 |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: 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 |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: 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 |
|
Back to top |
|
 |
Smong Server Help Squatter

Joined: 1043048991 Posts: 0x91E Offline
|
Posted: 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). |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: 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 |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:38 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: 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.
I put the new link in the post. |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Mon Jun 28, 2004 5:13 am Post subject: |
 |
|
|
|
I think you have a good start w/ that tutorial there
Now if only grel would have included those couple pages you wrote; it would have been nice  |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:38 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: 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.
Maybe later today.  |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: 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  |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Tue Jun 29, 2004 8:49 am Post subject: |
 |
|
|
|
Oooh! Part 3! |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:38 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Tue Jun 29, 2004 12:16 pm Post subject: |
 |
|
|
|
Get lost!  |
|
Back to top |
|
 |
-Smong- Guest
Offline
|
Posted: 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. |
|
Back to top |
|
 |
|