Server Help

ASSS Questions - Warbirds vs Javelins or Odds vs Evens

tech_girl - 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?

icon_rolleyes.gif ~Techie
Bak - Sun Nov 27, 2005 9:55 am
Post subject:
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]);
}

Anonymous - 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.
Cyan~Fire - Sun Nov 27, 2005 2:14 pm
Post subject:
Grav, that has nothing to do with this.
Anonymous - Sun Nov 27, 2005 10:48 pm
Post subject:
no joy- after making the changes I am still getting SCORE: Warebirds: Javelins:

~techie
Dr Brain - Sun Nov 27, 2005 11:19 pm
Post subject:
Try making Bak's changes.
Anonymous - 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?

new_scrambles.gif ~techie
tech_girl - Mon Nov 28, 2005 12:19 am
Post subject:
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
Anonymous - 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.
tech_girl - 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..

icon_eek.gif ~techie
Anonymous - 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
tech_girl - 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 icon_sad.gif

~techie
Anonymous - Mon Nov 28, 2005 12:50 am
Post subject:
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.
tech_girl - 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... 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
Dr Brain - 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?
Mine GO BOOM - 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.
Anonymous - 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.

icon_smile.gif ~techie
Bak - 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.
i88gerbils - Mon Nov 28, 2005 12:23 pm
Post subject:
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?
D1st0rt - 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.
tech_girl - 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
Bak - 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.
Anonymous - 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... icon_cry.gif new_puppy_dog_eyes.gif
tech_girl - Tue Nov 29, 2005 12:47 am
Post subject:
ffs I cant seem to remember to login to this forum LOL
Dr Brain - 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)
tech_girl - Tue Nov 29, 2005 12:55 am
Post subject:
[root@lapdog src]# make scoring.so
gcc -std=gnu99 -pipe -I. -Iinclude -I../build -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -c -o scoring.so.o
gcc: no input files
make: *** [scoring.so.o] Error 1
tech_girl - Tue Nov 29, 2005 12:57 am
Post subject:
but if I type :[root@lapdog src]# make scoring

I get:
make: `scoring' is up to date.
tech_girl - Tue Nov 29, 2005 12:58 am
Post subject:
now I have no scoring.so!
tech_girl - Tue Nov 29, 2005 1:09 am
Post subject:
restored from backup.. square 1 again.
Dr Brain - Tue Nov 29, 2005 1:18 am
Post subject:
I expected you wouldn't have a scoring module. The scoring module wasn't getting compiled (so your changes never went in). I think the problem is in the 1.4.0 makefile.

Try downloading 1.4.1 and trying that whole thing over again. Grel did something to the makefile between .0 and .1, if I remember correctly.
tech_girl - Wed Nov 30, 2005 1:05 am
Post subject:
Tech_Girl> ?version
asss 1.4.1 built on Nov 29 2005 03:40:41
running on Linux 2.6.9-11.EL



Modified points_goal.c

removed scoring.so

and then
Code: Show/Hide


src]# make scoring.so
gcc -std=gnu99 -pipe -I. -Iinclude -I/home/techgirl/NewAsss/asss-1.4.1/build  -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall   -c -o scoring.so.o
gcc: no input files
make: *** [scoring.so.o] Error 1

src]# make scoring
gcc -std=gnu99 -pipe  -fPIC  -shared -o /home/techgirl/NewAsss/asss-1.4.1/build/scoring.so /home/techgirl/NewAsss/asss-1.4.1/build/persist.o /home/techgirl/NewAsss/asss-1.4.1/build/stats.o /home/techgirl/NewAsss/asss-1.4.1/build/statcodes.o /home/techgirl/NewAsss/asss-1.4.1/build/points_kill.o /home/techgirl/NewAsss/asss-1.4.1/build/points_flag.o /home/techgirl/NewAsss/asss-1.4.1/build/points_goal.o /home/techgirl/NewAsss/asss-1.4.1/build/jackpot.o /home/techgirl/NewAsss/asss-1.4.1/build/periodic.o /home/techgirl/NewAsss/asss-1.4.1/build/points_periodic.o /home/techgirl/NewAsss/asss-1.4.1/build/basicstats.o  -L/usr/lib -Wl,-rpath,/usr/lib -ldb4
/usr/bin/ld: cannot find -ldb4
collect2: ld returned 1 exit status
make: *** [/home/techgirl/NewAsss/asss-1.4.1/build/scoring.so] Error 1

src]# make
gcc -std=gnu99 -pipe -I. -Iinclude -I/home/techgirl/NewAsss/asss-1.4.1/build  -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall   -I/usr/include  -fPIC  \
        -DNODQ -DNOTREAP -DNOSTRINGCHUNK -DNOMPQUEUE -DNOMMAP \
        -o /home/techgirl/NewAsss/asss-1.4.1/build/dbtool /home/techgirl/NewAsss/asss-1.4.1/build/statcodes.o main/util.c main/dbtool.c -L/usr/lib -Wl,-rpath,/usr/lib -ldb4
/usr/bin/ld: cannot find -ldb4
collect2: ld returned 1 exit status
make: *** [/home/techgirl/NewAsss/asss-1.4.1/build/dbtool] Error 1

src]# make all
gcc -std=gnu99 -pipe -I. -Iinclude -I/home/techgirl/NewAsss/asss-1.4.1/build  -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall   -I/usr/include  -fPIC  \
        -DNODQ -DNOTREAP -DNOSTRINGCHUNK -DNOMPQUEUE -DNOMMAP \
        -o /home/techgirl/NewAsss/asss-1.4.1/build/dbtool /home/techgirl/NewAsss/asss-1.4.1/build/statcodes.o main/util.c main/dbtool.c -L/usr/lib -Wl,-rpath,/usr/lib -ldb4
/usr/bin/ld: cannot find -ldb4
collect2: ld returned 1 exit status
make: *** [/home/techgirl/NewAsss/asss-1.4.1/build/dbtool] Error 1

]# rpm -qa|grep db4
db4-utils-4.2.52-7.1
db4-4.2.52-7.1
db4-devel-4.2.52-7.1



suggestions?

~techie
Dr Brain - Wed Nov 30, 2005 1:27 am
Post subject:
in system.mk (in the src folder) try changing the DB_LDFLAGS to using -ldb-4.2 instead of -ldb4.

Then do a "make all" again.

If that doesn't work, give the output of

Code: Show/Hide
ls /usr/bin | grep libdb

tech_girl - Wed Nov 30, 2005 1:39 am
Post subject:
ok that worked! I now have scoring.so back in the bin - however when I run asss I am now getting db_env_create:Invalid argument
E <cmod> error loading module 'persist'
Unrecoverable error (5): Error in loading module 'scoring:persist'

~techie
Dr Brain - Wed Nov 30, 2005 10:00 am
Post subject:
remove everything in the data directory.
tech_girl - Wed Nov 30, 2005 12:05 pm
Post subject:
ok managed to get things squared away... I removed everything from the data directory.... and the server started up just fine... I can't test tho till I get home later... *Crossing fingers* Thanks so much for your help and patience DR Brain!

icon_smile.gif
~techie
Anonymous - Wed Nov 30, 2005 2:09 pm
Post subject:
Hell Yea! It worked! When a goal is scored it no longer says Warbirds Javelins! YAY! WOOOOT WOOT! TY TY TY for the help Dr Brain!
Now I understand a bit more about asss as well icon_smile.gif

~Techie
Dr Brain - Wed Nov 30, 2005 2:33 pm
Post subject:
I ran in to thousands of problems while moving Hyperspace to ASSS, so I've got more than enough empathy for people who're willing to figure out what's wrong.

Glad I could help.
tech_girl - Wed Nov 30, 2005 4:13 pm
Post subject:
can ya take a look at my zone? would love some opinions - SE Old Glory...
Bak - Wed Nov 30, 2005 5:26 pm
Post subject:
knights and rooks eh?

Well the settings leave a little bit to be desired but the map looks pretty good. You make it yourself?
tech_girl - Wed Nov 30, 2005 5:34 pm
Post subject:
lol yea set it as knights and rooks ... I have heard some say keep the settings and others say they dont like them.. I think that opinion has alot to do with what your used to or accustomed to, and playing styles...
linux_terror initially setup the zone, and began the map, I expanded the map and settings... Very little of the initial map remain. The center of the map is where it all started.

~techie
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group