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
Warbirds vs Javelins or Odds vs Evens
Goto page 1, 2  Next
 
Post new topic   Reply to topic Printable version
 View previous topic  powerballing Post :: Post about ?record  View next topic  
Author Message
tech_girl
Novice


Joined: Nov 27 2005
Posts: 29
Offline

PostPosted: Sun Nov 27, 2005 5:02 am    Post subject: Warbirds vs Javelins or Odds vs Evens Reply to topic Reply with quote

I want Odds vs Evens!

I've had soccer setup for quite some time on my server, but I'm still unable to figure out how to get the score to read SCORE: Odds: Evens: - instead of SCORE: Warbirds: Javelins:
I've searched the forums, gone to shankys site, checked the wiki board, combed through files, but still can seem to get an answer- can someone fill me in?

icon_rolleyes.gif ~Techie
Back to top
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Sun Nov 27, 2005 9:55 am    Post subject: Reply to topic Reply with quote

modify ScoreMsg in points_goal

Code: Show/Hide
void ScoreMsg(Arena *arena, Player *p)  // pid = -1 means arena-wide, otherwise private
{
   struct ArenaScores *scores = P_ARENA_DATA(arena, scrkey);
   char _buf[256];

   strcpy(_buf,"SCORE: Warbirds:%d  Javelins:%d");
   if (scores->mode > 2)
      {
         strcat(_buf,"  Spiders:%d  Leviathans:%d");
         if (!p) chat->SendArenaMessage(arena,_buf,scores->score[0],scores->score[1],scores->score[2],scores->score[3]);
         else chat->SendMessage(p,_buf,scores->score[0],scores->score[1],scores->score[2],scores->score[3]);
      }
      else
         if (!p) chat->SendArenaMessage(arena,_buf,scores->score[0],scores->score[1]);
         else chat->SendMessage(p,_buf,scores->score[0],scores->score[1]);
}
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Ex-Gravitron
Guest


Offline

PostPosted: Sun Nov 27, 2005 10:30 am    Post subject: Reply to topic Reply with quote

In VIE subgame it's a rather easy matter.

Misc:FrequencyShipTypes:0:1:Whether ship type is based on frequency player is on or not (0=no 1=yes)

If 1 = classic powerball WvJ.
If 0 = OvE.
Back to top
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Sun Nov 27, 2005 2:14 pm    Post subject: Reply to topic Reply with quote

Grav, that has nothing to do with this.
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Guest



Offline

PostPosted: Sun Nov 27, 2005 10:48 pm    Post subject: Reply to topic Reply with quote

no joy- after making the changes I am still getting SCORE: Warebirds: Javelins:

~techie
Back to top
Dr Brain
Flip-flopping like a wind surfer


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

PostPosted: Sun Nov 27, 2005 11:19 pm    Post subject: Reply to topic Reply with quote

Try making Bak's changes.
_________________
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
Guest



Offline

PostPosted: Mon Nov 28, 2005 12:11 am    Post subject: Reply to topic Reply with quote

Dr Brain wrote:
Try making Bak's changes.


he didnt post any changes in his comment....

my ScoreMsg section looks like his :

void ScoreMsg(Arena *arena, Player *p) // pid = -1 means arena-wide, otherwise private
{
struct ArenaScores *scores = P_ARENA_DATA(arena, scrkey);
char _buf[256];

strcpy(_buf,"SCORE: Warbirds:%d Javelins:%d");
if (scores->mode > 2)
{
strcat(_buf," Spiders:%d Leviathans:%d");
if (!p) chat->SendArenaMessage(arena,_buf,scores->score[0],scores->score[1],scores->score[2],scores->score[3]);
else chat->SendMessage(p,_buf,scores->score[0],scores->score[1],scores->score[2],scores->score[3]);
}
else
if (!p) chat->SendArenaMessage(arena,_buf,scores->score[0],scores->score[1]);
else chat->SendMessage(p,_buf,scores->score[0],scores->score[1]);
}


I tried changing it to Odds and evens and no joy ... any idea what I'm doing wrong?

new_scrambles.gif ~techie
Back to top
tech_girl
Novice


Joined: Nov 27 2005
Posts: 29
Offline

PostPosted: Mon Nov 28, 2005 12:19 am    Post subject: Reply to topic Reply with quote

errr forgot to log in!

Code: Show/Hide

void ScoreMsg(Arena *arena, Player *p)  // pid = -1 means arena-wide, otherwise private
{
        struct ArenaScores *scores = P_ARENA_DATA(arena, scrkey);
        char _buf[256];

        strcpy(_buf,"SCORE: Warbirds:%d  Javelins:%d");
        if (scores->mode > 2)
                {
                        strcat(_buf,"  Spiders:%d  Leviathans:%d");
                        if (!p) chat->SendArenaMessage(arena,_buf,scores->score[0],scores->score[1],scores->score[2],scores->score[3]);
                        else chat->SendMessage(p,_buf,scores->score[0],scores->score[1],scores->score[2],scores->score[3]);
                }
                else
                        if (!p) chat->SendArenaMessage(arena,_buf,scores->score[0],scores->score[1]);
                        else chat->SendMessage(p,_buf,scores->score[0],scores->score[1]);
}


icon_rolleyes.gif ~techie
Back to top
View users profile Send private message Add User to Ignore List
Ex-Gravitron
Guest


Offline

PostPosted: Mon Nov 28, 2005 12:21 am    Post subject: Reply to topic Reply with quote

Just take a compiled ASSS exe, hex it, find the references as they should be plain ASCII and hack out the text.
Back to top
tech_girl
Novice


Joined: Nov 27 2005
Posts: 29
Offline

PostPosted: Mon Nov 28, 2005 12:25 am    Post subject: Reply to topic Reply with quote

can anyone please interpret that in layman's terms....
I opened the file - edited - then compiled... and still no joy! I changed the text basically from warbirds javelins to odds evens... am I missing something? I am not a whiz at this... I really appreciate the help..

icon_eek.gif ~techie
Back to top
View users profile Send private message Add User to Ignore List
SpecShip
Guest


Offline

PostPosted: Mon Nov 28, 2005 12:28 am    Post subject: Reply to topic Reply with quote

For someone who claimed to be a grown woman employed in the IT business, you sure are damn clueless if you can't figure this out.

Are you sure you're that tech girl from alpha?
Don't seem very tech saavy to me.


- Ex Gravitron
Back to top
tech_girl
Novice


Joined: Nov 27 2005
Posts: 29
Offline

PostPosted: Mon Nov 28, 2005 12:32 am    Post subject: Reply to topic Reply with quote

W.T.F.- the changes didnt work. and now I'm being criticized for my lack of technical skill by Spec Ship- Ex Gravitron!- .... ffs I came here for help not to be put down for not being able to figure this out!

I'm a NOC technician with limited linux knowledge... and what does that have to do with a slice of bread? I'm here asking for help not criticizm icon_sad.gif

~techie
Back to top
View users profile Send private message Add User to Ignore List
SpecShip
Guest


Offline

PostPosted: Mon Nov 28, 2005 12:50 am    Post subject: Reply to topic Reply with quote

tech_girl wrote:
I'm here asking for help not criticizm icon_sad.gif

~techie


Ah.
Wrong forum then.
Here we got trash talkers not helpers.
Try messaging grelminar directly.
Or maybe i88gerbils, assuming he got a clue about ASSS.

Although,
Code: Show/Hide
strcpy(_buf,"SCORE: Warbirds:%d  Javelins:%d")
==>
Code: Show/Hide
strcpy(_buf,"SCORE: Odds:%d  Evens:%d")
should work in theory.

Eww! Python scripts? WTF Grel.
Back to top
tech_girl
Novice


Joined: Nov 27 2005
Posts: 29
Offline

PostPosted: Mon Nov 28, 2005 1:25 am    Post subject: Reply to topic Reply with quote

Quote:
Ah.
Wrong forum then.
Here we got trash talkers not helpers.
Try messaging grelminar directly.
Or maybe i88gerbils, assuming he got a clue about ASSS.


well hmm I have seen grelminar reply to posts... and was hoping for a reply from him - not a freakin trash talker... icon_rolleyes.gif


Quote:
Although, Code: Show/Hidestrcpy(_buf,"SCORE: Warbirds:%d Javelins:%d")
==> Code: Show/Hidestrcpy(_buf,"SCORE: Odds:%d Evens:%d")
should work in theory.

Eww! Python scripts? YAMS YAMS YAMS YAMS YAMS YAMS YAMS YAMS YAMS Grel.


Scroll up and you will see that I tried this and my point is it didnt work and I asked for other suggestions as to what I might be able to try.... icon_wink.gif

BTW for anyone that can reply with another helpful suggestion - I'm runnin ASSS and its on CentOS -cmd line all the way...

TY Bak for your help as well icon_smile.gif

new_color_.gif ~techie
Back to top
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


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

PostPosted: Mon Nov 28, 2005 9:15 am    Post subject: Reply to topic Reply with quote

Seriously, ignore everything and anything gravitron says.

Ok, now that that's cleared up, lets get to work on your problem. Make sure you recompile everything after you've made the change. "make all" in the source directory under linux.

Just for reference (assuming that doesn't work) what version of ASSS are you using, and what operating system are you using?
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:41
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Mon Nov 28, 2005 10:27 am    Post subject: Reply to topic Reply with quote

tech_girl wrote:
well hmm I have seen grelminar reply to posts... and was hoping for a reply from him - not a freakin trash talker... :roll:

He isn't. Grelminar is a very helper person, who hasn't posted in this thread yet. The person you were talking to is known for flaming people for insignificant reasons, such as asking a question.

To varify that you are running the new compiled version of the program, first delete or rename the binary you will be updating so that you know you are putting the new one there.
Back to top
View users profile Send private message Add User to Ignore List Send email
Guest



Offline

PostPosted: Mon Nov 28, 2005 10:59 am    Post subject: Reply to topic Reply with quote

Mine GO BOOM, I was refering to gravitron as the trash talker.

Thanks guys... I'm at work now and I'll mess around with it again as soon as I can this evening.

icon_smile.gif ~techie
Back to top
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Mon Nov 28, 2005 11:35 am    Post subject: Reply to topic Reply with quote

scoring is it's own dll (or in linux .o?). You don't need a new exe, just make sure after you recompile scoring you put it in the modules directory used by the asss server.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
i88gerbils
Oldbie Server Help


Gender:Gender:Male
Joined: Dec 13 2002
Posts: 423
Location: OH
Offline

PostPosted: Mon Nov 28, 2005 12:23 pm    Post subject: Reply to topic Reply with quote

Can you still do
Code: Show/Hide

make scoring


or a similar command to compile a specific module and then do a make install scoring to move it over to the bin/ directory?
_________________
Oldbie Server Help
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website Yahoo Messenger
D1st0rt
Miss Directed Wannabe


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

PostPosted: Mon Nov 28, 2005 5:28 pm    Post subject: Reply to topic Reply with quote

I think in the newer makefiles (1.4.0+) it automatically moves things to the bin directory after compiling, but i'm not sure.
_________________

Back to top
View users profile Send private message Add User to Ignore List Visit posters website
tech_girl
Novice


Joined: Nov 27 2005
Posts: 29
Offline

PostPosted: Mon Nov 28, 2005 8:33 pm    Post subject: Reply to topic Reply with quote

asss 1.4.0
running on Linux 2.6.9-11.EL (CentOS)

Made sure asss wasnt running.... made the change... ran make all in the src directory...
# ls
basicstats.c periodic.c points_flag.c points_kill.c scoring.mk stats.c
jackpot.c persist.c points_goal.c points_periodic.c statcodes.c

Its wierd I go in and start a soccer game score a goal and it still says warbirds javelins even tho in the points_goal.c i have replaced that with odds evens...
still no go....

~Techie
Back to top
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Mon Nov 28, 2005 8:49 pm    Post subject: Reply to topic Reply with quote

for the points_goal module, add a printf in the module load function.

When the server starts make sure that the appropriate message is printed out. This way you will be sure your new module is in fact the one being loaded into the server and not the old one.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Guest



Offline

PostPosted: Tue Nov 29, 2005 12:41 am    Post subject: Reply to topic Reply with quote

Quote:
add a printf in the module load function.


I dont believe the new one is loading- and I feel like a complete dumbass...
I dont understand enough of what I'm trying to do and I'm scared to Fudge something up- I made a backup and its all back to square 1...

I troubleshoot most operating system problems from MacX to WindowsX, and very little Linux.... if its related to internet connections- email connections/viruses.. network connectivity (Wireless devices, packetshapers,sensors,hubs,switches, VTC, VOIP).. satellite connectivity (not TV Satellite-rather Internet Sat$$$$)... i can generally solve the problem.. but with this I'm over my head- I'm not a programer- I'm a techie... icon_cry.gif new_puppy_dog_eyes.gif
Back to top
tech_girl
Novice


Joined: Nov 27 2005
Posts: 29
Offline

PostPosted: Tue Nov 29, 2005 12:47 am    Post subject: Reply to topic Reply with quote

ffs I cant seem to remember to login to this forum LOL
Back to top
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


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

PostPosted: Tue Nov 29, 2005 12:50 am    Post subject: Reply to topic Reply with quote

I imagine the problem lies in the building.

Go into the asss root directory (/home/code/asss for me)

type:
rm bin/scoring.so
cd src
make scoring.so

make sure the last one doesn't give any sort of error (if it does, copy+paste it here)
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 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: 22 page(s) served in previous 5 minutes.

phpBB Created this page in 0.490533 seconds : 49 queries executed (85.4%): GZIP compression disabled