[cod] segmentation error

Geoff Goas gitman at gmail.com
Wed Nov 2 02:07:02 EST 2005


scratch that, only works with numerical values

On 11/2/05, Geoff Goas <gitman at gmail.com> wrote:
> sorta just thought of a way around these things...
>
> localized references can contain variables
>
> say i have a reference that looks like "Greetings &&1"
>
> and i do clientannouncement(self, &"STR_GREET", self.name);
>
> that should work properly.
>
> On 11/1/05, Geoff Goas <gitman at gmail.com> wrote:
> > if you try Powerserver on a windows server you will notice in the
> > console many complaints about strings not being localized.
> >
> > any iprintln(), iprintlnbold(), clientannouncement(), announcement()
> > that is called with a regular variable that points to a string or a
> > regular string will seg fault the server.
> >
> > this means you cannot have strings that you can change on the fly (eg.
> > the "Welcome Messages" and "Message Center") because they all have to
> > be localized in a STR file.
> >
> > for instance, in my mod i have the file localizedstrings/ax.str. i use
> > a welcome message in my mod, so i had to create this entry in the STR
> > file:
> >
> > REFERENCE       MOTDTDM
> > LANG_ENGLISH    "Welcome to ^1anarchic^7TDM. Grenades have a 3.5 second
> > cook time. Three snipers allowed per team. Three shotguns allowed per
> > team. Smoke after 60 kills. Deathicons/hitblips off. Visit
> > ^3Anarchic-X.com^7 for more information."
> >
> > and in the script, i had to call it like this:
> >
> > clientAnnouncement(self, &"AX_MOTDTDM");
> >
> > otherwise, the server would seg fault. so again, CoD2 kinda went
> > backwards in the sense that we can't have any dynamic strings. either
> > this has to be addressed in a patch or we will just have to live with
> > it. even though it "works" on the windows servers, its still not good
> > practice considering the error messages that follow when you call an
> > unlocalized string.
> >
> > On 11/1/05, Click Bouyow <click at deadboneplatoon.com> wrote:
> > > I can modify a weapon file with no issues.  If I use Powerserver, or any
> > > of the other mods, the server fails.
> > >
> > > John
> > >
> > > Geoff Goas wrote:
> > > > "Any mod that uses or modifies a DVAR will not run"
> > > >
> > > > absolutely untrue. bulletworm's mod does not localize any strings that
> > > > he uses, THIS is why the linux server seg faults. took me a good hour
> > > > to figure this out.
> > > >
> > > > On 11/1/05, Click Bouyow <click at deadboneplatoon.com> wrote:
> > > >
> > > >> I too, tried Bulletworms mod.  It will not run on Linux.  I submitted a bug
> > > >> report on it.  Any mod that uses or modifies a DVAR will not run.
> > > >>
> > > >> John
> > > >>
> > > >> ________________________________________
> > > >> From: Wildcard [mailto:wildcard at hccnet.nl]
> > > >> Sent: Tuesday, November 01, 2005 3:23 PM
> > > >> To: cod at icculus.org
> > > >> Subject: RE: [cod] segmentation error
> > > >>
> > > >> Bullet Worms Powerserver Mod its over at iwnations.com forums.
> > > >> But i also tried other mods...same result..segmentation fault
> > > >>
> > > >> -------Oorspronkelijk bericht-------
> > > >>
> > > >> Van: Jim Mayes
> > > >> Datum: 11/01/05 20:42:18
> > > >> Aan: cod at icculus.org
> > > >> Onderwerp: RE: [cod] segmentation error
> > > >>
> > > >>
> > > >> What mod is causing this?
> > > >> ~jim
> > > >> ________________________________________
> > > >> From: Wildcard [mailto:wildcard at hccnet.nl]
> > > >> Sent: Tuesday, November 01, 2005 12:41 PM
> > > >> To: cod at icculus.org
> > > >> Subject: Re: [cod] segmentation error
> > > >>
> > > >> all i get is:
> > > >>
> > > >>
> > > >> Program received signal SIGSEGV, Segmentation fault.
> > > >> [Switching to Thread 1076187168 (LWP 7069)]
> > > >> 0x0810df5d in ?? ()
> > > >> (gdb) bt
> > > >> #0 0x0810df5d in ?? ()
> > > >> #1 0x0810e0af in ?? ()
> > > >> #2 0x0810e110 in ?? ()
> > > >> #3 0x08080140 in ?? ()
> > > >> #4 0x08083210 in ?? ()
> > > >> #5 0x08083741 in ?? ()
> > > >> #6 0x08084a7d in ?? ()
> > > >> #7 0x08107978 in ?? ()
> > > >> #8 0x08094238 in ?? ()
> > > >> #9 0x0809489a in ?? ()
> > > >> #10 0x08061f69 in ?? ()
> > > >> #11 0x08061fbd in ?? ()
> > > >> #12 0x080d25be in ?? ()
> > > >> #13 0x4014fe80 in __libc_start_main () from /lib/tls/libc.so.6
> > > >> #14 0x08049f71 in ?? ()
> > > >> (gdb)
> > > >>
> > > >> -------Oorspronkelijk bericht-------
> > > >>
> > > >> Van: Tamas KOZAK
> > > >> Datum: 11/01/05 18:24:36
> > > >> Aan: cod at icculus.org
> > > >> Onderwerp: Re: [cod] segmentation error
> > > >>
> > > >> Wildcard wrote:
> > > >>
> > > >>> any word on newer linux bins?...the beta one gives always a segmentation
> > > >>> error when i try to load a mod.
> > > >>> This does not happen on a windows server
> > > >>>
> > > >>>
> > > >>>
> > > >> Can you backtrace the binary? It would be more informative IMO.
> > > >>
> > > >> Run gdb with ./cod2_lnxded and its args (gdb ./cod2_lnxded). Then type
> > > >> "run" and give the "bt" command when it have recived SIGSEGV signal.
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > > >
> > > >
> > > > --
> > > > Geoff Goas, Administrator
> > > > |ax|anarchic - http://www.anarchic-x.com
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
> > --
> > Geoff Goas, Administrator
> > |ax|anarchic - http://www.anarchic-x.com
> >
>
>
> --
> Geoff Goas, Administrator
> |ax|anarchic - http://www.anarchic-x.com
>


--
Geoff Goas, Administrator
|ax|anarchic - http://www.anarchic-x.com



More information about the Cod mailing list