Author |
Message |
tech_girl Novice

Joined: Nov 27 2005 Posts: 29 Offline
|
Posted: Sun Nov 27, 2005 5:02 am Post subject: Warbirds vs Javelins or Odds vs Evens |
 |
|
|
|
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?
~Techie |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Sun Nov 27, 2005 9:55 am Post subject: |
 |
|
|
|
modify ScoreMsg in points_goal
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 |
|
 |
Ex-Gravitron Guest
Offline
|
Posted: Sun Nov 27, 2005 10:30 am Post subject: |
 |
|
|
|
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!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Sun Nov 27, 2005 2:14 pm Post subject: |
 |
|
|
|
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 |
|
 |
Guest
Offline
|
Posted: Sun Nov 27, 2005 10:48 pm Post subject: |
 |
|
|
|
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: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Sun Nov 27, 2005 11:19 pm Post subject: |
 |
|
|
|
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 |
|
 |
Guest
Offline
|
Posted: Mon Nov 28, 2005 12:11 am Post subject: |
 |
|
|
|
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?
~techie |
|
Back to top |
|
 |
tech_girl Novice

Joined: Nov 27 2005 Posts: 29 Offline
|
Posted: Mon Nov 28, 2005 12:19 am Post subject: |
 |
|
|
|
errr forgot to log in!
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]);
}
|
~techie |
|
Back to top |
|
 |
Ex-Gravitron Guest
Offline
|
Posted: Mon Nov 28, 2005 12:21 am Post subject: |
 |
|
|
|
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
|
Posted: Mon Nov 28, 2005 12:25 am Post subject: |
 |
|
|
|
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..
~techie |
|
Back to top |
|
 |
SpecShip Guest
Offline
|
Posted: Mon Nov 28, 2005 12:28 am Post subject: |
 |
|
|
|
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
|
Posted: Mon Nov 28, 2005 12:32 am Post subject: |
 |
|
|
|
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
~techie |
|
Back to top |
|
 |
SpecShip Guest
Offline
|
|
Back to top |
|
 |
tech_girl Novice

Joined: Nov 27 2005 Posts: 29 Offline
|
Posted: Mon Nov 28, 2005 1:25 am Post subject: |
 |
|
|
|
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...
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....
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
~techie |
|
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 Nov 28, 2005 9:15 am Post subject: |
 |
|
|
|
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 |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:41 Gender: Joined: Aug 01 2002 Posts: 3615 Location: Las Vegas Offline
|
Posted: Mon Nov 28, 2005 10:27 am Post subject: |
 |
|
|
|
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 |
|
 |
Guest
Offline
|
Posted: Mon Nov 28, 2005 10:59 am Post subject: |
 |
|
|
|
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.
~techie |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Mon Nov 28, 2005 11:35 am Post subject: |
 |
|
|
|
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 |
|
 |
i88gerbils Oldbie Server Help

Gender: Joined: Dec 13 2002 Posts: 423 Location: OH Offline
|
Posted: Mon Nov 28, 2005 12:23 pm Post subject: |
 |
|
|
|
Can you still do
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 |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Mon Nov 28, 2005 5:28 pm Post subject: |
 |
|
|
|
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 |
|
 |
tech_girl Novice

Joined: Nov 27 2005 Posts: 29 Offline
|
Posted: Mon Nov 28, 2005 8:33 pm Post subject: |
 |
|
|
|
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 |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Mon Nov 28, 2005 8:49 pm Post subject: |
 |
|
|
|
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 |
|
 |
Guest
Offline
|
Posted: Tue Nov 29, 2005 12:41 am Post subject: |
 |
|
|
|
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...  |
|
Back to top |
|
 |
tech_girl Novice

Joined: Nov 27 2005 Posts: 29 Offline
|
Posted: Tue Nov 29, 2005 12:47 am Post subject: |
 |
|
|
|
ffs I cant seem to remember to login to this forum LOL |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Tue Nov 29, 2005 12:50 am Post subject: |
 |
|
|
|
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 |
|
 |
|