[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  Is it really compiling? (Smaugfuss)

Is it really compiling? (Smaugfuss)

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


Posted by Oblisgr   (123 posts)  [Biography] bio
Date Thu 23 Jan 2020 09:08 PM (UTC)
Message
I m really confused.
I m doing changes to smaugfuss, simple changes like changing the text of the skills and then i compile the mud to apply them.

I get message from make that the compiling is ok but no changes are made. I dont know why...

I get this message on make. Is thing compling for sure?

oblisgr@TaLoS:/mnt/h/smaugfuss/src$ make
make -s smaug
Compiling o/skills.o....
Generating dependency file ...
Done compiling mud.
make -s dns
Done compiling DNS resolver.
[Go to top] top

Posted by Nick Gammon   Australia  (22,966 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Thu 23 Jan 2020 09:35 PM (UTC)

Amended on Thu 23 Jan 2020 09:36 PM (UTC) by Nick Gammon

Message
Have you shut down the previous (running) version? Recompiling won't affect the one currently executing.

If so, how are you running it? In the src directory, try typing "ls -lt". You should see a list of files sorted in date order. And the date/time should be, like, 5 minutes ago. Like this:


Nick@nick-4623b639d0 ~/smaugFUSS/src
$ ls -lt
total 9833
-rwxrwxr-x  1 Nick None   64618 Jan 24 08:34 resolver.exe
-rw-r--r--  1 Nick None    5444 Jan 24 08:34 dependencies.d
-rw-r--r--  1 Nick None    5334 Jan 24 08:34 dependencies.d.bak
-rwxrwxr-x  1 Nick None 4788687 Jan 24 08:33 smaug.exe
-rw-r--r--  1 Nick None  304879 Jan 24 08:33 smaug.exp
-rw-r--r--  1 Nick None  143548 Jan 24 08:33 smaug.def


The resolver got compiled last, so it is at the top of the list. smaug.exe got compiled just before, so it is a couple of lines from the top.

Now, to definitely execute that, the "manual" way is to change to the area directory and then run the file smaug.exe. That is:


cd ../area
../src/smaug

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Oblisgr   (123 posts)  [Biography] bio
Date Reply #2 on Fri 24 Jan 2020 09:57 AM (UTC)
Message
oblisgr@TAXYDEMA:/mnt/d/smaugfuss/src$ ls -lt
total 9780
-rwxrwxrwx 1 oblisgr oblisgr 14448 Jan 24 11:52 resolver
-rwxrwxrwx 1 oblisgr oblisgr 5444 Jan 24 11:49 dependencies.d
-rwxrwxrwx 1 oblisgr oblisgr 5370992 Jan 24 11:49 smaug
drwxrwxrwx 1 oblisgr oblisgr 4096 Jan 24 11:49 o
-rwxrwxrwx 1 oblisgr oblisgr 84569 Jan 24 11:49 act_move.c
-rwxrwxrwx 1 oblisgr oblisgr 3323 Jan 23 14:13 Makefile
-rwxrwxrwx 1 oblisgr oblisgr 12400 Jan 23 12:59 resolver.o
-rwxrwxrwx 1 oblisgr oblisgr 115973 Mar 4 2019 comm.c
-rwxrwxrwx 1 oblisgr oblisgr 10565 Mar 4 2019 hint.c
-rwxrwxrwx 1 oblisgr oblisgr 95766 Mar 4 2019 clans.c
-rwxrwxrwx 1 oblisgr oblisgr 28933 Mar 4 2019 calendar.c
-rwxrwxrwx 1 oblisgr oblisgr 338363 Mar 4 2019 act_wiz.c
-rwxrwxrwx 1 oblisgr oblisgr 221230 Mar 4 2019 imc.c
-rwxrwxrwx 1 oblisgr oblisgr 134010 Mar 4 2019 fight.c
-rwxrwxrwx 1 oblisgr oblisgr 79730 Feb 27 2019 polymorph.c
-rwxrwxrwx 1 oblisgr oblisgr 118964 Feb 27 2019 mud_prog.c
-rwxrwxrwx 1 oblisgr oblisgr 5135 Feb 27 2019 mccp.c
-rwxrwxrwx 1 oblisgr oblisgr 293705 Feb 27 2019 build.c
-rwxrwxrwx 1 oblisgr oblisgr 200125 Sep 26 2017 skills.c
-rwxrwxrwx 1 oblisgr oblisgr 180600 Sep 25 2017 act_info.c
-rwxrwxrwx 1 oblisgr oblisgr 82202 Sep 23 2017 update.c
-rwxrwxrwx 1 oblisgr oblisgr 109381 Sep 23 2017 act_comm.c
-rwxrwxrwx 1 oblisgr oblisgr 51262 Dec 5 2014 color.c
-rwxrwxrwx 1 oblisgr oblisgr 10030 Dec 5 2014 color.h
-rwxrwxrwx 1 oblisgr oblisgr 171425 Nov 26 2014 mud.h
-rwxrwxrwx 1 oblisgr oblisgr 14109 Nov 26 2014 const.c
-rwxrwxrwx 1 oblisgr oblisgr 47666 Nov 23 2014 reset.c
-rwxrwxrwx 1 oblisgr oblisgr 45224 Nov 22 2014 misc.c
-rwxrwxrwx 1 oblisgr oblisgr 71444 Nov 19 2014 liquids.c
-rwxrwxrwx 1 oblisgr oblisgr 27939 Nov 19 2014 renumber.c
-rwxrwxrwx 1 oblisgr oblisgr 38362 Nov 18 2014 chess.c
-rwxrwxrwx 1 oblisgr oblisgr 91471 Nov 18 2014 save.c
-rwxrwxrwx 1 oblisgr oblisgr 92460 Nov 17 2014 mud_comm.c
-rwxrwxrwx 1 oblisgr oblisgr 24348 Nov 17 2014 mapout.c
-rwxrwxrwx 1 oblisgr oblisgr 25044 Nov 17 2014 hotboot.c
-rwxrwxrwx 1 oblisgr oblisgr 140773 Nov 17 2014 handler.c
-rwxrwxrwx 1 oblisgr oblisgr 260572 Nov 17 2014 db.c
-rwxrwxrwx 1 oblisgr oblisgr 103147 Nov 17 2014 act_obj.c
-rwxrwxrwx 1 oblisgr oblisgr 39262 Nov 17 2014 ban.c
-rwxrwxrwx 1 oblisgr oblisgr 76016 Nov 17 2014 boards.c
-rwxrwxrwx 1 oblisgr oblisgr 12359 Nov 17 2014 comments.c
-rwxrwxrwx 1 oblisgr oblisgr 47284 Nov 17 2014 deity.c
-rwxrwxrwx 1 oblisgr oblisgr 10266 Nov 17 2014 dns.c
-rwxrwxrwx 1 oblisgr oblisgr 69648 Nov 17 2014 house.c
-rwxrwxrwx 1 oblisgr oblisgr 9207 Nov 17 2014 imm_host.c
-rwxrwxrwx 1 oblisgr oblisgr 31018 Nov 17 2014 interp.c
-rwxrwxrwx 1 oblisgr oblisgr 206519 Nov 17 2014 magic.c
-rwxrwxrwx 1 oblisgr oblisgr 20536 Nov 17 2014 mapper.c
-rwxrwxrwx 1 oblisgr oblisgr 31732 Nov 17 2014 mssp.c
-rwxrwxrwx 1 oblisgr oblisgr 52574 Nov 17 2014 player.c
-rwxrwxrwx 1 oblisgr oblisgr 45674 Nov 17 2014 shops.c
-rwxrwxrwx 1 oblisgr oblisgr 29126 Nov 17 2014 special.c
-rwxrwxrwx 1 oblisgr oblisgr 54659 Nov 17 2014 tables.c
-rwxrwxrwx 1 oblisgr oblisgr 16193 Nov 17 2014 variables.c
-rwxrwxrwx 1 oblisgr oblisgr 160985 Nov 17 2014 weather.c
-rwxrwxrwx 1 oblisgr oblisgr 6853 Nov 16 2014 planes.c
-rwxrwxrwx 1 oblisgr oblisgr 3253 Nov 10 2014 liquids.h
-rwxrwxrwx 1 oblisgr oblisgr 3557 Nov 10 2014 calendar.h
-rwxrwxrwx 1 oblisgr oblisgr 2478 Nov 10 2014 dns.h
-rwxrwxrwx 1 oblisgr oblisgr 2275 Nov 10 2014 hotboot.h
-rwxrwxrwx 1 oblisgr oblisgr 35017 Nov 10 2014 mpxset.c
-rwxrwxrwx 1 oblisgr oblisgr 3450 Nov 10 2014 resolver.c
-rwxrwxrwx 1 oblisgr oblisgr 5003 Nov 10 2014 bet.h
-rwxrwxrwx 1 oblisgr oblisgr 2247 Nov 10 2014 chess.h
-rwxrwxrwx 1 oblisgr oblisgr 1671 Nov 10 2014 hint.h
-rwxrwxrwx 1 oblisgr oblisgr 4744 Nov 10 2014 house.h
-rwxrwxrwx 1 oblisgr oblisgr 1911 Nov 10 2014 mapper.h
-rwxrwxrwx 1 oblisgr oblisgr 1644 Nov 10 2014 mccp.h
-rwxrwxrwx 1 oblisgr oblisgr 4598 Nov 10 2014 mssp.h
-rwxrwxrwx 1 oblisgr oblisgr 23367 Nov 10 2014 services.c
-rwxrwxrwx 1 oblisgr oblisgr 10035 Nov 10 2014 makeobjs.c
-rwxrwxrwx 1 oblisgr oblisgr 11689 Nov 10 2014 track.c
-rwxrwxrwx 1 oblisgr oblisgr 7052 Nov 10 2014 weather.h
-rwxrwxrwx 1 oblisgr oblisgr 70 Nov 7 2014 vg_suppress.supp
-rwxrwxrwx 1 oblisgr oblisgr 26 Nov 7 2014 shutdown.txt
-rwxrwxrwx 1 oblisgr oblisgr 989 Nov 7 2014 startup
-rwxrwxrwx 1 oblisgr oblisgr 30 Nov 7 2014 qstart
-rwxrwxrwx 1 oblisgr oblisgr 9942 Nov 7 2014 sha256.c
-rwxrwxrwx 1 oblisgr oblisgr 2035 Nov 7 2014 sha256.h
-rwxrwxrwx 1 oblisgr oblisgr 24626 Nov 7 2014 news.c
-rwxrwxrwx 1 oblisgr oblisgr 3110 Nov 7 2014 news.h
-rwxrwxrwx 1 oblisgr oblisgr 1477 Nov 7 2014 planes.h
-rwxrwxrwx 1 oblisgr oblisgr 3925 Nov 7 2014 imccfg.h
-rwxrwxrwx 1 oblisgr oblisgr 2259 Nov 7 2014 lines
-rwxrwxrwx 1 oblisgr oblisgr 7908 Nov 7 2014 hashstr.c
-rwxrwxrwx 1 oblisgr oblisgr 15636 Nov 7 2014 imc.h
-rwxrwxrwx 1 oblisgr oblisgr 18 Nov 7 2014 count
-rwxrwxrwx 1 oblisgr oblisgr 213 Nov 7 2014 grind
oblisgr@TAXYDEMA:/mnt/d/smaugfuss/src$
[Go to top] top

Posted by Oblisgr   (123 posts)  [Biography] bio
Date Reply #3 on Fri 24 Jan 2020 03:59 PM (UTC)

Amended on Fri 24 Jan 2020 04:05 PM (UTC) by Oblisgr

Message
Nick you say that a new smaug file will appear in area folder. This does not happen. I copy the smaug file from src folder into the area folder.

I suppose i have to ./startup?
when i run this file my WSL freezes and i have to close it.
I think it has some problem, it doesnt work properly.

But for sure the make and compling doesnt create smaug file in my area folder.

I figured out that each time i compile new code, i have to make and copy the smaug file from src to area in order the changes will appy.

In other words, every time it created a new smaug file in scr folder which i have to copy.

I suppose it doesnt suppose to work like this, so the question is why the maug file is not created in area folder.

Any ideas?
[Go to top] top

Posted by Nick Gammon   Australia  (22,966 posts)  [Biography] bio   Forum Administrator
Date Reply #4 on Fri 24 Jan 2020 10:29 PM (UTC)

Amended on Fri 24 Jan 2020 10:30 PM (UTC) by Nick Gammon

Message

Nick you say that a new smaug file will appear in area folder.

I never said that. Check what I said.

Now, to definitely execute that, the “manual” way is to change to the area directory and then run the file smaug.exe.

That is, you “cd” to the area folder, and then by typing:

../src/smaug

You are running the smaug file (in the src folder) whilst your current directory is the area directory.

The ../src/ part tells it to find the file “smaug” in the folder “src” located one folder up.

In other words, every time it created a new smaug file in scr folder which i have to copy.

No, just execute it like I said. The file you execute doesn’t have to be in the current directory.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Oblisgr   (123 posts)  [Biography] bio
Date Reply #5 on Sat 25 Jan 2020 06:43 PM (UTC)
Message
thank that helped!
cheers
[Go to top] 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.


12,560 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]