Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.

Author Topic:  Server Code Compilation/Run  (Read 1839 times)

0 Members and 1 Guest are viewing this topic.

Foot

« on: 26, November 2017, 14:32:08 »
Hi there,

I am trying to compile the server on my raspberry that is running the raspbian OS (based on Debian 9 Stretch)

The first problem that I got, was that using the -O0 flag, it can't find the inline functions, so I changed it to -O1 and was able to compile the server without problems.

The second problem was that when I run the make install, it skip some directories because the copy command on the install script is using the "cp" command without the recursive flag "-r", fixed that too!

Well, server compiled and installed on the local folder, not on the system, but when I try to run the server, it gives me this errors:


TIMESTAMP: 2017-11-26 12:22:55

Daimonin v0.10.8-b (protocol version 991031).
Copyright (C) 2002-2009 Michael Toennies.
Reading bmaps from ./lib/bmaps...done (got 9276/9277/9277)
Reading animations from ./lib/animations...
done. (got 759)
Reading archetypes from ./lib/archetypes...
 arch-pass 1...
 done.
 setting up archetable...done
 reading artifacts from ./lib/artifacts...MAPBUG: Object <no ->arch> - can't find face bracers_med_str.101.
done.
 adding local artifacts from books.art...done.
 loading treasure...
BUG: Treasure lacks archetype: armour_ag
BUG: Treasure lacks archetype: bracers_ag
BUG: Treasure lacks archetype: boots_ag
BUG: Treasure lacks archetype: belt_ag
BUG: Treasure lacks archetype: pants_ag
BUG: Treasure lacks archetype: helmet_ag
BUG: Treasure lacks archetype: token_generic
BUG: Treasure lacks archetype: sphere_generic
BUG: Treasure lacks archetype: critter_generic
BUG: Treasure lacks archetype: tripyra_stone_generic
 adding local treasures from dev_maps.tl...done.
 link treasure lists pass 2...
ERROR: Treasurelist armour_mail has element with no name or archetype
Fatal: Shutdown server. Reason: Fatal Error


I tried to compile the server code of the trunk and of the main branches!

Process:

server/make folder
./configure
make all
make install
back to server folder
chmod +x daimonin_server
./daimonin_server

Tks,
Renato
« Last Edit: 26, November 2017, 14:35:08 by Foot »

_people_

« Reply #1 on: 27, November 2017, 01:00:31 »
I'm assuming you're referring to the "cp arch/* lib" command, which is meant to do just that: copy all files (not directories) from the arches directory. Because some of those files are essentially just compiled versions of all the directory contents. No harm done by copying the directories, though.

The error you're having could be one of two things. Either an arch is missing from the SVN (I can't check right now, someone else might be able to though) or you just need to rebuild the arch collection. There is a bash script at project_tools/bash_scripts/dai_recollect.sh which will be able to recollect them for you. After that, just run "cp arch/* server/lib/*" and your server will have the complete collection.

You can also use the mapmaker to collect arches, which is a bit faster and allows you to create/edit maps. Just download the editor package and add extract the file "editor/DaimoninEditor.jar" into <your Daimonin dir>/editor and run "java -jar DaimoninEditor.jar -c" and then "cp arch/* server/lib/*".
-- _people_ :)

Foot

« Reply #2 on: 27, November 2017, 14:42:57 »
Thanks, it worked!

Ran "dai_recollect.sh path/arch path/lib"
Compiled the server with -O1, to fix de inline function
Ran ./daimonin-server, and now it worked without problem!

Thanks!

Dolfo

« Reply #3 on: 07, December 2021, 22:04:24 »
I grap this old thread here. I currently try to run server. I used "svn.code.sf.net/p/daimonin/code/trunk daimonin-code" for checkout. I also used project_tools/bash_scripts/dai_recollect.sh and rebuild arch-collection and copied it manuel, like people said above. But i stuck at next level now. This is my try.

Daimonin v0.10.9 (protocol version 991031).
Copyright (C) 2002-2009 Michael Toennies.
Reading bmaps from ./lib/bmaps...done (got 10696/10697/10697)
Reading animations from ./lib/animations...
done. (got 954)
Reading archetypes from ./lib/archetypes...
 arch-pass 1...
BUG: Unable to find animation blue_sky_wmask_a
BUG: Unable to find animation blue_sky_wmask_b
BUG: Unable to find animation blue_sky_wmask_c
BUG: Unable to find animation blue_sky_wmask_d
BUG: Unable to find animation candle_purp
BUG: Unable to find animation chest_4.111
BUG: Unable to find animation chest7_111
BUG: Unable to find animation close_chest7_111
BUG: Unable to find animation cupboard1_wall.111
BUG: Unable to find animation dir_sign
BUG: Unable to find animation door_wood1
BUG: Unable to find animation door_wood2
BUG: Unable to find animation door_wood4
BUG: Unable to find animation drowflag
INFO:: lex_load(): Unrecognized string (is_player 1)
INFO:: lex_load(): Unrecognized string (is_player 1)
BUG: Unable to find animation dwarf_wheel_2
INFO:: lex_load(): Unrecognized string (is_player 1)
INFO:: lex_load(): Unrecognized string (is_player 1)
BUG: Unable to find animation elf_toytable2
BUG: Unable to find animation exit_wavy
BUG: Unable to find animation figpud2
BUG: Unable to find animation firebolt
BUG: Unable to find animation firebreath
BUG: Unable to find animation gate_open
BUG: Unable to find animation gateTrg1
BUG: Unable to find animation gateTrg1_open
BUG: Unable to find animation goblin
BUG: Unable to find animation golem
BUG: Unable to find animation golem_mage
Fatal: Shutdown server. Reason: BUG flood
« Last Edit: 07, December 2021, 22:07:15 by Dolfo »
Don't believe the shit, you hear in mainstream. Believe your own body. Your body is speaking always the true to you. But you need to understand your body. Hear to your body, not to your ego. And when body is calling to you: "Hey something is wrong!" find the reason(s) for that. Man in White don't go for that, they don't want to heal you. They want earn money and sell you medicine, you should take rest of your life. You are not the patient, you are their customer. Never forget this!

Dolfo

« Reply #4 on: 08, December 2021, 22:01:48 »
I studied some more of your logic and checked my environment

I focused doors/wooden/door_wood1
I checked my arch pass and definition in animtree. It's all fine there. But error is launched on archetypes!

Object door_wood1
name wooden door
layer 5
type 20
blocksview 1
door_closed 1
sp 5
no_pick 1
direction 5
face door_wood1.111
animation door_wood1 <- this line launches error
is_turnable 1
msg
The door is locked!
endmsg
end

so archetypes don't find my paths?

i compared object definition to https://sourceforge.net/p/daimonin/code/HEAD/tree/trunk/server/lib/archetypes

Object door_wood1
editor_folder doors/wooden
name wooden door
layer 5
type 20
blocksview 1
door_closed 1
sp 5
pass_thru 1
no_pick 1
direction 1
face door_wood1.111
animation door_wood1
is_animated 0
anim_speed 1
is_turnable 1
msg
You need a special key to open this door.
endmsg
end

looks like my object definition is older and misses editor_folder doors/wooden definition?
« Last Edit: 08, December 2021, 22:10:17 by Dolfo »
Don't believe the shit, you hear in mainstream. Believe your own body. Your body is speaking always the true to you. But you need to understand your body. Hear to your body, not to your ego. And when body is calling to you: "Hey something is wrong!" find the reason(s) for that. Man in White don't go for that, they don't want to heal you. They want earn money and sell you medicine, you should take rest of your life. You are not the patient, you are their customer. Never forget this!

_people_

« Reply #5 on: 08, December 2021, 22:09:34 »
Check your server/lib directory for the "animations" file. If it's not there, ensure collecting arches worked properly and manually copy all the files (not directories) from /arch to /server/lib.
-- _people_ :)

Dolfo

« Reply #6 on: 08, December 2021, 22:13:02 »
Check your server/lib directory for the "animations" file. If it's not there, ensure collecting arches worked properly and manually copy all the files (not directories) from /arch to /server/lib.
I have done this ... I think it's a missing path definition in my archetypes. I had edit this above you post.
Don't believe the shit, you hear in mainstream. Believe your own body. Your body is speaking always the true to you. But you need to understand your body. Hear to your body, not to your ego. And when body is calling to you: "Hey something is wrong!" find the reason(s) for that. Man in White don't go for that, they don't want to heal you. They want earn money and sell you medicine, you should take rest of your life. You are not the patient, you are their customer. Never forget this!

_people_

« Reply #7 on: 08, December 2021, 22:42:30 »
Are the animations listed in your error message present in /server/lib/animations? That's the only place the server checks.
-- _people_ :)

Dolfo

« Reply #8 on: 08, December 2021, 23:23:48 »
Are the animations listed in your error message present in /server/lib/animations? That's the only place the server checks.

Yeah, it's in there
anim door_wood1
facings 9
dummy.111
door_wood1.111
door_wood1.121
door_wood1.131
door_wood1.141
door_wood1.151
door_wood1.161
door_wood1.171
door_wood1.181

I have data for this door_wood1 in arch/doors/wooden and arch folder is same level than server folder.

I still try to understand your checkout logik, currently i can only check out svn.code.sf.net, but can browse main, trunk, saison on sourceforge? I can manualy grap all the raw data code from sourceforge, but can't checkout there? Why is world so complicated? I keep trying ...

And error is really launched when server is working on archetypes. I changed this one codeline from door_wood1 to door_wood1x and error log from server changed his error message too. So all there, but server search other places for the door_wood1. Perhaps i copy this door_wood1 animation in all my folders, to find out where server is searching this?  ;D
« Last Edit: 08, December 2021, 23:47:28 by Dolfo »
Don't believe the shit, you hear in mainstream. Believe your own body. Your body is speaking always the true to you. But you need to understand your body. Hear to your body, not to your ego. And when body is calling to you: "Hey something is wrong!" find the reason(s) for that. Man in White don't go for that, they don't want to heal you. They want earn money and sell you medicine, you should take rest of your life. You are not the patient, you are their customer. Never forget this!

_people_

« Reply #9 on: 08, December 2021, 23:28:38 »
Does the animation definition end with "mina" (i.e. the line before the next anim is "mina") in your animations file?
-- _people_ :)

Dolfo

« Reply #10 on: 08, December 2021, 23:45:30 »
Does the animation definition end with "mina" (i.e. the line before the next anim is "mina") in your animations file?

Yes, it's there. One mina before and one after the definition.
« Last Edit: 08, December 2021, 23:48:00 by Dolfo »
Don't believe the shit, you hear in mainstream. Believe your own body. Your body is speaking always the true to you. But you need to understand your body. Hear to your body, not to your ego. And when body is calling to you: "Hey something is wrong!" find the reason(s) for that. Man in White don't go for that, they don't want to heal you. They want earn money and sell you medicine, you should take rest of your life. You are not the patient, you are their customer. Never forget this!

_people_

« Reply #11 on: 08, December 2021, 23:53:45 »
BTW the editor_folder is unused (at least by the server, might be used by the editor).

There aren't many other things I can think of checking. Looks like the server successfully read all (or perhaps only most) animations, but can't find them on subsequent lookups. My server reports 977 anims, which is close enough to yours. The server just quits if it encounters too many bugs in a short time, since there's likely something severely wrong.

Maybe check the line endings on your animations file (maybe server reads as "door_wood1\r"). The Linux arch collector should filter out \r, but maybe it doesn't. You can also try collecting arches/anims using the mapmaker (download from the same area as the game client). It's possible the shell compiler is introducing a small syntax error into your anims file. You'll have to manually copy the files from /arch to /server/lib, as the mapmaker doesn't handle that by default.
-- _people_ :)

Dolfo

« Reply #12 on: 09, December 2021, 00:02:35 »
Ok, i will keep going. Could this be a hardware problem? My vserver is cheapest and has only 0.5 GB RAM, 10GB SSD. I can upgrade this. But i check also your other ideas. Perhaps i try building server next on a local pc?
Don't believe the shit, you hear in mainstream. Believe your own body. Your body is speaking always the true to you. But you need to understand your body. Hear to your body, not to your ego. And when body is calling to you: "Hey something is wrong!" find the reason(s) for that. Man in White don't go for that, they don't want to heal you. They want earn money and sell you medicine, you should take rest of your life. You are not the patient, you are their customer. Never forget this!

_people_

« Reply #13 on: 09, December 2021, 00:31:32 »
It's unlikely to be a hardware issue, but possible. I can confirm the editor works with <256MB RAM but I have no idea how the shell script collector performs. The server under Windows (I haven't benchmarked on Linux) idles at around 51MB RAM and should crash if you run out. I'm not very familiar with the temporary files the server creates but it's possible that they contain anim data, and if they aren't written to disk (due to no space) they're just silently ignored.
-- _people_ :)

Dolfo

« Reply #14 on: 09, December 2021, 01:48:38 »
... and if they aren't written to disk (due to no space) they're just silently ignored.
Diskspace can't be the problem. I have 1,7G used 7,6G Avail so 18% use of SSD.

I also checked files in lib for CR. I cleaned files with nano and -o. This destroys carriage returns. Currently i don't understand this error behavior. Need to study more your structures. I also have done the whole checkout and build process with main trunk and recollect arch there too, but still same problem.
« Last Edit: 09, December 2021, 01:50:16 by Dolfo »
Don't believe the shit, you hear in mainstream. Believe your own body. Your body is speaking always the true to you. But you need to understand your body. Hear to your body, not to your ego. And when body is calling to you: "Hey something is wrong!" find the reason(s) for that. Man in White don't go for that, they don't want to heal you. They want earn money and sell you medicine, you should take rest of your life. You are not the patient, you are their customer. Never forget this!

Tags:
 

Related Topics

  Subject / Started by Replies Last post
6 Replies
3118 Views
Last post 24, March 2005, 23:36:42
by Rubinstein
2 Replies
798 Views
Last post 22, July 2005, 12:27:36
by michtoen
2 Replies
21646 Views
Last post 15, July 2007, 12:16:12
by ThePlaneskeeper
8 Replies
1985 Views
Last post 12, May 2007, 02:30:42
by SirNarf
6 Replies
535 Views
Last post 24, May 2007, 13:29:37
by jmaxou