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
ASSS Bot Core
Goto page Previous  1, 2
 
Post new topic   Reply to topic Printable version
 View previous topic  Win32 Contenc.dll - v1.1.3 Post :: Post Trigger module  View next topic  
Author Message
Helicon
Server Help Squatter


Joined: Dec 03 2002
Posts: 771
Location: GNU Doldrums
Offline

PostPosted: Sat Apr 05, 2003 1:45 pm    Post subject: Reply to topic Reply with quote

Code: Show/Hide

//// chat.c ////
local void SendArenaMessage(Arena *arena, const char *str, ...)
{
   LinkedList set = LL_INITIALIZER;
   va_list args;

   get_arena_set(&set, arena);

   va_start(args, str);
   v_send_msg(&set, MSG_ARENA, 0, str, args);
   va_end(args);
}



my C is rusty, here is the function...please explain the

Code: Show/Hide

...){


argument
_________________
Signatures just seem so quaint.
Back to top
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


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

PostPosted: Sat Apr 05, 2003 2:25 pm    Post subject: Reply to topic Reply with quote

its the etc... means you put the rest in there, he didnt have time to write it all in.
_________________
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
Helicon
Server Help Squatter


Joined: Dec 03 2002
Posts: 771
Location: GNU Doldrums
Offline

PostPosted: Sat Apr 05, 2003 6:39 pm    Post subject: Reply to topic Reply with quote

no its in the function decalration... in the code...that is not a comment in chat.c
Back to top
View users profile Send private message Add User to Ignore List
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:35
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3605
Location: Las Vegas
Offline

PostPosted: Sun Apr 06, 2003 1:52 am    Post subject: Reply to topic Reply with quote

... means "anything". Have you never used printf before? Anyways, it works like this. The function inside reads the normal variables that are defined, then reads the argument list for the extra stuff. It does a little bit of work, exchanging %s, %d, etc, in a string (usually one of the variables passed to the function) with the extra stuff you sent it. Play around with a printf once to get the hang of it.
Back to top
View users profile Send private message Add User to Ignore List Send email
Helicon
Server Help Squatter


Joined: Dec 03 2002
Posts: 771
Location: GNU Doldrums
Offline

PostPosted: Sun Apr 06, 2003 12:35 pm    Post subject: Reply to topic Reply with quote

like i said...i quite a bit rusty....

i messed with it... do %s and %d have any other equivalents as in a possible %a. i noticed you pass p->name and use %s while integers like newship are alll %d
Back to top
View users profile Send private message Add User to Ignore List
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:35
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3605
Location: Las Vegas
Offline

PostPosted: Sun Apr 06, 2003 1:53 pm    Post subject: Reply to topic Reply with quote

Check out MSDN every so often with your coding requirements:

Format Specification Fields: printf and wprintf Functions
Back to top
View users profile Send private message Add User to Ignore List Send email
Warhaven
Newbie


Gender:Gender:Male
Joined: Oct 02 2003
Posts: 9
Location: Sacramento, CA
Offline

PostPosted: Thu Oct 02, 2003 7:54 pm    Post subject: It's bad enough... Reply to topic Reply with quote

... that Continuum is written in VB.

It could respond SO much better if done in C++.

I even offered to do a port (which would have included a Cocoa version), but they replied, "We don't see a market for it."

I just want to know what market they're speaking of. It's not like Continuum makes money.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:35
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3605
Location: Las Vegas
Offline

PostPosted: Thu Oct 02, 2003 8:57 pm    Post subject: Re: It's bad enough... Reply to topic Reply with quote

Warhaven wrote:
Continuum is written in VB


I believe you are mistaken here. Continuum is done in C++, the whole way throughout. I don't know where you got the VB part, but it is wrong. Trust me, Priit hates VB as much as the next guy.

And who would respond to a question with the "market" answer? I would have thought your post would be about something else completely, but you did mention Continuum.
Back to top
View users profile Send private message Add User to Ignore List Send email
Warhaven
Newbie


Gender:Gender:Male
Joined: Oct 02 2003
Posts: 9
Location: Sacramento, CA
Offline

PostPosted: Wed Oct 08, 2003 6:20 pm    Post subject: My Mistake Reply to topic Reply with quote

The earlier versions of Continuum weren't very responsive, and I was told by several people online that it was written in VB (which would have explained everything, outside of it being an early release).

Might explain a little why I got scuffed off. Sorry. tongue.gif

In any event, I had mentioned helping to do a port for OS X (macintosh), and the response was, "We don't see a market for it." So I was wondering what market he/she/they were talking about. May have been a retort against the VB remark.

Anyway, I have a feeling they're not too keen with the PPC architecture, Macs in particular. I get a lot of anti-Mac sentiments in the SS community, so a port is probably very unlikely, even if offered the help.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Dustpuppy
Server Help Squatter


Age:34
Gender:Gender:Male
Joined: Jan 23 2003
Posts: 215
Location: England
Offline

PostPosted: Thu Oct 09, 2003 9:35 am    Post subject: Reply to topic Reply with quote

Looks like standard printf() formatting...
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Custom Projects All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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: 163 page(s) served in previous 5 minutes.

phpBB Created this page in 0.086033 seconds : 34 queries executed (60.7%): GZIP compression disabled