Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
[wanted] warpto-like module

 
Post new topic   Reply to topic Printable version
 View previous topic  How do I disable wall passing? Post :: Post Connecting to an asss server.  View next topic  
Author Message
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Mon Jun 21, 2004 2:36 am    Post subject: [wanted] warpto-like module Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
SuSE
Me measures good


Joined: Dec 02 2002
Posts: 2307
Offline

PostPosted: Mon Jun 21, 2004 3:07 am    Post subject: Reply to topic Reply with quote

ummm, talk to Dr Brain
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Mon Jun 21, 2004 3:12 am    Post subject: Reply to topic Reply with quote

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
Back to top
View users profile Send private message Add User to Ignore List
50% Packetloss
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Sep 09 2003
Posts: 561
Location: Santa Clarita, California
Offline

PostPosted: Mon Jun 21, 2004 3:34 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email AIM Address
SuSE
Me measures good


Joined: Dec 02 2002
Posts: 2307
Offline

PostPosted: Mon Jun 21, 2004 5:03 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email Visit posters website
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Mon Jun 21, 2004 10:05 am    Post subject: Reply to topic Reply with quote

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.
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Mon Jun 21, 2004 4:51 pm    Post subject: Reply to topic Reply with quote

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
Back to top
View users profile Send private message Add User to Ignore List
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Mon Jun 21, 2004 9:38 pm    Post subject: Reply to topic Reply with quote

I'm lazy, I just use catids VS projects biggrin.gif
_________________

Back to top
View users profile Send private message Add User to Ignore List Visit posters website
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Mon Jun 21, 2004 9:50 pm    Post subject: Reply to topic Reply with quote

<< doesnt have the resources to run VS.net :/ or else he would.

Yes, I just spoke in third person. lol
Back to top
View users profile Send private message Add User to Ignore List
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Mon Jun 21, 2004 9:56 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Thu Jun 24, 2004 2:25 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Thu Jun 24, 2004 3:44 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:38
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Mon Jun 28, 2004 2:57 am    Post subject: Reply to topic Reply with quote

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.
Back to top
View users profile Send private message Add User to Ignore List
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Mon Jun 28, 2004 5:13 am    Post subject: Reply to topic Reply with quote

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
Back to top
View users profile Send private message Add User to Ignore List
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:38
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Mon Jun 28, 2004 7:52 am    Post subject: Reply to topic Reply with quote

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
Back to top
View users profile Send private message Add User to Ignore List
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Mon Jun 28, 2004 10:00 pm    Post subject: Reply to topic Reply with quote

Seriously, a group of people who like ASSS should start really developing more complete guides. Grel can't do it all tongue.gif
Back to top
View users profile Send private message Add User to Ignore List
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Tue Jun 29, 2004 8:49 am    Post subject: Reply to topic Reply with quote

Oooh! Part 3!
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Solo Ace
Yeah, I'm in touch with reality...we correspond from time to time.


Age:38
Gender:Gender:Male
Joined: Feb 06 2004
Posts: 2583
Location: The Netherlands
Offline

PostPosted: Tue Jun 29, 2004 12:16 pm    Post subject: Reply to topic Reply with quote

Get lost! icon_razz.gif
Back to top
View users profile Send private message Add User to Ignore List
-Smong-
Guest


Offline

PostPosted: Tue Jun 29, 2004 5:33 pm    Post subject: Reply to topic Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 38 page(s) served in previous 5 minutes.

phpBB Created this page in 0.781820 seconds : 42 queries executed (96.1%): GZIP compression disabled