Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Gaming > Dragons > Re: [coding] I ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 7 Topic 2146 of 2200
Post > Topic >>

Re: [coding] I NEED HALP!

by Draco18s <draco18s2_NO_@[EMAIL PROTECTED] > Mar 10, 2008 at 01:17 AM

In article <e-ydnUZXN_OLj07anZ2dnUVZ8gydnZ2d@[EMAIL PROTECTED]
>, 
s.r.clarkstone@[EMAIL PROTECTED]
 says...
> Draco18s wrote:
> > In article <M7adnealdPgmgVHaRVnyuQA@[EMAIL PROTECTED]
>, 
> > s.r.clarkstone@[EMAIL PROTECTED]
 says...
> >> Draco18s wrote:
> >>> So, for my senior project everyone (that isn't me) decided to use
Flux World 
> >>> Server to be the backbone software for the virtual world we want to
build.  
> >>> BTW, Flux does nothing but synchronize two or more Flux viewers.  It
doesn't 
> >>> touch the underlying world file, do chat, assets, permissions, or
any of those 
> >>> other fancy smantcy server-things.
> >>>
> >>> Anyway, I'm getting a compile error:
> >>>
> >>> hydrac.o: In function `printErrorExit': 
> >>> 
/kunden/homepages/12/d201092097/htdocs/sp/arttopian/Hydra/hydrac.c:76: the

> >>> `gets' function is dangerous and should not be used. 
> >>>  make: *** No rule to make target `hydrabot', needed by `all'. 
Stop. 
> >> Maybe that's two errors.  Firstly I would guess that someone has made

> >> warnings be fatal, and gets() has triggered a warning (as it should).

> >> The solution to that is to re-write to not use gets(), or to make 
> >> warnings non-fatal.
> > 
> > Which was stupid, because the other compile error I fixed (in the
OTHER 
> > makefile that needed to be run) was "ln: 'really long path to a
softlink': 
> > File exists."
> > 
> > I have no idea what gets does and therefor can't re-write.  Nor do I
know how 
> > to make warnings not fatal.
> 
> Um, how are you going to modify this server without knowing C?

You got me.  Using Flux wasn't my idea (in fact, my idea was "Use anything
but 
Flux"), but when your next-best option is $1200...such opinions get put
aside.
(And I do know C, C I write myself!  I've never ever ever been forced to
deal 
with code someone else has written; I can troubleshoot my own code because
I 
have an idea of where to look to find the problem).
The bulk of the "server" that deals with modifying the world will have to
be 
hand-written and probably done in Perl.  As it is, the world runs really 
really slowly--but it may just be my computer (it's over 3 years old). 
And 
Flux Player isn't as fast as Flash player to begin with--even given the
same 
amount of data.  Took me three whole minutes to download the world as it 
exists; and it's only going to get bigger.

> Anyway, 
> gets() reads in a string to a provided location in memory, with no 
> checking that there is enough room.  Find out what size buffer is 
> provided, and replace the call to gets with a call to fgets, with the 
> file being stdin.
> 
> Making warnings non-fatal would require modifying the makefile, or maybe

> passing some options to it.  Or, there might be #pragmas in the source 
> files to control that.

Interestingly enough, when I went for help from one of the professors it 
compiled fine.  *Shrugs*

-- 
Lord Draco18s
DC2.Dw Gm L- W- T Phvwalt Sks Cag^ Bco|# A- Fr++ Nu M--- O H+ $ Fo R+++
Ac+ J+
S+ I-# V++ Q++ Tc+++[C++]/Tc--- E+

"Yum!"     |>  v-v-v-v   |>
 |  ,  ,  .|.  |  n  |  .|.
 '. |_/|  | |'''''''''''| |           \
   (q p),-| | HERSHEY'S | |'-._       ))
   /_(/   | | CHO|"|LIT | | )  '-.___//
---W"W----'-'----'-'----'-'----------'--------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Bearer of the Bronze Medal for Most Posts in March 2007 (283)
Bearer of the Gold Medal for Most Posts in April 2007 (826)
Holder of the Scroll of Nobility from Lady Viriatha for that win
 




 7 Posts in Topic:
[coding] I NEED HALP!
Draco18s <draco18s2_NO  2008-03-02 18:20:49 
Re: [coding] I NEED HALP!
Simon Richard Clarkstone   2008-03-03 15:43:55 
Re: [coding] I NEED HALP!
Draco18s <draco18s2_NO  2008-03-03 12:06:00 
Re: [coding] I NEED HALP!
Simon Richard Clarkstone   2008-03-08 22:24:34 
Re: [coding] I NEED HALP!
Draco18s <draco18s2_NO  2008-03-10 01:17:04 
Re: [coding] I NEED HALP!
Simon Richard Clarkstone   2008-03-15 13:10:20 
Re: [coding] I NEED HALP!
Draco18s <draco18s2_NO  2008-03-15 14:08:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 6:12:16 CDT 2008.