Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ ROM ➜ Compiling the server ➜ ROM server with cygnus

ROM server with cygnus

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2 

Posted by Translucent Hate   USA  (48 posts)  Bio
Date Reply #15 on Thu 15 Mar 2001 06:45 AM (UTC)
Message
i think my problem with romolc10.tar.gz is that it
is a pain in the butt, because i have to go through
and change stuff, and from the instructions its kind
of detailed on how but where specifically to put them
doesn't seem to make much sense to me... i've tried
a couple other versions of the olc with the proper
source code and they seem to patch fine usually but
then lots of errors later... i'll figure it out...
then again, who needs areas? ;)
Top

Posted by Translucent Hate   USA  (48 posts)  Bio
Date Reply #16 on Thu 15 Mar 2001 04:24 PM (UTC)
Message
i'm done with trying to get olc and color happy with
each other.. its pretty much hopeless regardless of
what versions i use... but i did find this source
code with olc and color already in it, and it is
rom24b6... i think i have another makefile error,
but i'm not sure... maybe you could help?

here is the makefile

CC = gcc
PROF = -O -ggdb
NOCRYPT =
C_FLAGS = -Wall $(PROF) $(NOCRYPT)
L_FLAGS = $(PROF)

O_FILES = act_comm.o act_enter.o act_info.o act_move.o act_obj.o act_wiz.o \
alias.o ban.o comm.o const.o db.o db2.o effects.o fight.o flags.o \
handler.o healer.o interp.o note.o lookup.o magic.o magic2.o \
music.o recycle.o save.o scan.o skills.o special.o tables.o \
update.o mob_cmds.o mob_prog.o olc.o olc_act.o olc_save.o bit.o \
mem.o string.o olc_mpcode.o hedit.o

rom: $(O_FILES)
rm -f rom
$(CC) $(L_FLAGS) -o rom $(O_FILES) -lcrypt

.c.o: merc.h
$(CC) -c $(C_FLAGS) $<

Both DOLD_RAND and DNOCRYPT give me errors galore...
undefined reference errors....

here is the source just in case you want to have a look
cause as of right now i'm lost in thoughts....

http://kyndig.com/cgi-bin/codes/search.cgi?query=ghost

Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #17 on Thu 15 Mar 2001 06:14 PM (UTC)

Amended on Thu 15 Mar 2001 06:15 PM (UTC) by Nick Gammon

Message
OK, here is what I did:

1. Copied makefilelinux to Makefile
2. Changed the third line of Makefile to:


NOCRYPT = -DNOCRYPT -DOLD_RAND


3. Changed the list of files in Makefile to:


O_FILES = act_comm.o act_enter.o act_info.o act_move.o act_obj.o act_wiz.o \
alias.o ban.o comm.o const.o db.o db2.o effects.o fight.o flags.o \
handler.o healer.o interp.o note.o lookup.o magic.o magic2.o \
music.o recycle.o save.o scan.o skills.o special.o tables.o \
update.o mob_cmds.o mob_prog.o olc.o olc_act.o olc_save.o bit.o \
mem.o string.o olc_mpcode.o hedit.o NewMagic.o act_newc.o \
remort.o bank.o


Basically this involved adding the following files to the end:


NewMagic.o act_newc.o remort.o bank.o


4. Edited the file merc.h, and at around line 2915, changed:


char * crypt (char *, char *);


to


#ifndef NOCRYPT
char * crypt (char *, char *);
#endif


Then it compiled without errors. :)


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Bob The Hydra   (19 posts)  Bio
Date Reply #18 on Mon 16 Apr 2001 06:55 AM (UTC)
Message
I am trying to compile with cygwin. But I get the following errors:
$ make
gcc -c -Wall -O -g -DNOCRYPT -DOLD_RAND const.c
const.c:433: parse error before `{'
const.c:433: warning: missing braces around initializer
const.c:433: warning: (near initialization for `pc_race_table[5].class_mult')
const.c:435: warning: initialization makes pointer from integer without a cast
const.c:435: warning: initialization makes pointer from integer without a cast
const.c:436: warning: initialization makes pointer from integer without a cast
const.c:437: parse error before `}'
make: *** [const.o] Error 1

------
Thanks for your time.

Top

Posted by Bob The Hydra   (19 posts)  Bio
Date Reply #19 on Mon 16 Apr 2001 07:22 PM (UTC)
Message
Well I figured out thats problem....I was using the wrong source( I'm not the brightest buld in the pack sometimes)
now i get this:
magic.c:643: warning: suggest explicit braces to avoid ambiguous `else'
magic.c: In function `spell_earthquake':
magic.c:2203: warning: suggest explicit braces to avoid ambiguous `else'
gcc -c -Wall -O -g -DNOCRYPT -DOLD_RAND magic2.c
gcc -c -Wall -O -g -DNOCRYPT -DOLD_RAND music.c
gcc -c -Wall -O -g -DNOCRYPT -DOLD_RAND note.c
gcc -c -Wall -O -g -DNOCRYPT -DOLD_RAND recycle.c
gcc -c -Wall -O -g -DNOCRYPT -DOLD_RAND save.c
gcc -c -Wall -O -g -DNOCRYPT -DOLD_RAND scan.c
gcc -c -Wall -O -g -DNOCRYPT -DOLD_RAND skills.c
gcc -c -Wall -O -g -DNOCRYPT -DOLD_RAND special.c
gcc -c -Wall -O -g -DNOCRYPT -DOLD_RAND tables.c
gcc -c -Wall -O -g -DNOCRYPT -DOLD_RAND update.c
rm -f rom
gcc -o rom act_comm.o act_enter.o act_info.o act_move.o act_obj.o act_wiz.o al
ias.o ban.o comm.o const.o db.o db2.o effects.o fight.o flags.o handler.o healer
.o interp.o lookup.o magic.o magic2.o music.o note.o recycle.o save.o scan.o ski
lls.o special.o tables.o update.o \
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-2/../../../../i686-pc-cygwin/bin/ld: cann
ot open : Permission denied
collect2: ld returned 1 exit status
make: *** [rom] Error 1

What did I do now?

Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #20 on Tue 17 Apr 2001 12:31 AM (UTC)
Message
Check out the posts about "SWR server" - the guy compiling that had similar problems (I know it is SMAUG and not ROM, but the same principles apply).

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Bob The Hydra   (19 posts)  Bio
Date Reply #21 on Tue 17 Apr 2001 02:07 AM (UTC)
Message
I tried the things there but i still get the errors =(.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #22 on Tue 17 Apr 2001 03:14 AM (UTC)
Message
I don't know what to suggest. Check you have a "bin" directory (above the src directory).

Check you have the latest Cygwin.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Bob The Hydra   (19 posts)  Bio
Date Reply #23 on Tue 17 Apr 2001 11:38 PM (UTC)
Message
I downloaded Lordroms distribution and it worked fine so thanks for the help.
Top

Posted by Mrjones   (3 posts)  Bio
Date Reply #24 on Sat 28 Apr 2001 07:24 AM (UTC)

Amended on Wed 02 May 2001 04:26 PM (UTC) by Mrjones

Message
I am having trouble removing the stock area to free up vnums. I was leaving the usual...

help
limbo
immort
midgaard
..

but it doesnt work. Id there more hard coded vnums in this windows version than the standard dist?

if so exactly what can I remove. in the meantime I'll be digging for them in the source.

-MrJones
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #25 on Sat 28 Apr 2001 11:21 PM (UTC)
Message

Check out this forum topic:

Question about Areas

I list various vnums there (obtained from the source) which is not necessarily comprehensive.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Joe   (1 post)  Bio
Date Reply #26 on Thu 20 Jun 2002 05:43 PM (UTC)
Message
Hello, i have a few problems.... when i compile rom24 i no longer get errors just many warnings about explicit brackets. Then i get the rom.exe but when i run it all that happens is a window flashes up on the screen, then imediately it goes away. Any suggestions.



Joey
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #27 on Mon 24 Jun 2002 05:46 AM (UTC)
Message
Try opening a command window (DOS window) and running from there. At least then the window will not just pop up and then disappear.

Then, in the command window, change to the area directory. eg.


cd ../area
../src/rom


That will work a lot better.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


96,658 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.