Page 1 of 1

Salem layer util- compiling problem

PostPosted: Sat Sep 29, 2012 7:41 pm
by Chiprel
There are 2 working/semi-working .res decompilers.(made for hnh but work for most of stuff in salem too)
Unfortunately some textures/stuff does not get unpacked.
("haven res util" by theTrav: http://www.havenandhearth.com/forum/vie ... =27&t=5853 )
("layer util" by boshaw: http://www.havenandhearth.com/forum/vie ... 27&t=23458 )

After some time I found out that boshaw made new Layer Util just for salem:
http://odditown.taggedup.com/boshaw/Lay ... salem.html

While hnh layer util was written in java, salem layer util is written in Lisp. I'm getting errors while trying to compile it. Could anyone else (preferably with some Lisp knowledge) try compiling it?
Boshaw wrote that he compiled it with SBCL 1.0.40.
At first I tried using newest SBCL for win (I think its 1.0.58 or so), got errors so I tried using 1.0.40 too but unfortunately this is what I get:

E:\salemlayer\salem-layer-util>sbcl
This is SBCL 1.0.40, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses. See the CREDITS and COPYING files in the
distribution for more information.

This is experimental prerelease support for the Windows platform: use
at your own risk. "Your Kitten of Death awaits!"
* (asdf:operate 'asdf:load-op 'salem-layer-util)

; Loading system definition from
; E:\salemlayer\salem-layer-util\salem-layer-util.asd into #<PACKAGE "ASDF0">
; Registering #<SYSTEM "salem-layer-util">
; Loading system definition from
; C:\*****EditedPATH*****\quicklisp\dists\quicklisp\software\babel-201
20407-git\babel.asd
; into #<PACKAGE "ASDF0">
; Registering #<SYSTEM "babel">
; Loading system definition from
; C:\*****EditedPATH*****\quicklisp\dists\quicklisp\software\alexandri
a-20120520-git\alexandria.asd
; into #<PACKAGE "ASDF0">
; Registering #<SYSTEM "alexandria">
; Loading system definition from
; C:\*****EditedPATH*****\quicklisp\dists\quicklisp\software\trivial-f
eatures-20120909-git\trivial-features.asd
; into #<PACKAGE "ASDF0">
; Registering #<SYSTEM "trivial-features">

; compiling file "E:\\salemlayer\\salem-layer-util\\packages.lisp" (written 26 S
EP 2012 07:34:53 PM):
; compiling (REQUIRE :BORDEAUX-THREADS)
; compiling (REQUIRE :BABEL)
; compiling (DEFPACKAGE :SLAYER-UTIL ...)

; C:\*****EditedPATH*****\common-lisp\cache\sbcl-1.0.40
-win-x86\E\salemlayer\salem-layer-util\ASDF-TMP-packages.fasl written
; compilation finished in 0:00:00.000
; Loading system definition from
; C:\*****EditedPATH*****\quicklisp\dists\quicklisp\software\bordeaux-
threads-0.8.2\bordeaux-threads.asd
; into #<PACKAGE "ASDF0">
; Registering #<SYSTEM "bordeaux-threads">
; compiling file "E:\\salemlayer\\salem-layer-util\\const.lisp" (written 26 SEP
2012 07:34:53 PM):
; compiling (IN-PACKAGE :SALEM-LAYER-UTIL)
; file: E:\salemlayer\salem-layer-util\const.lisp
; in: IN-PACKAGE :SALEM-LAYER-UTIL
; (IN-PACKAGE :SALEM-LAYER-UTIL)
; --> EVAL-WHEN
; ==>
; (SETQ *PACKAGE* (SB-INT:FIND-UNDELETED-PACKAGE-OR-LOSE "SALEM-LAYER-UTIL"))
;
; caught ERROR:
; (during compile-time-too processing)
; The name "SALEM-LAYER-UTIL" does not designate any package.

; compiling (DEFPARAMETER *VERBOSE* ...)

; C:\*****EditedPATH*****\common-lisp\cache\sbcl-1.0.40
-win-x86\E\salemlayer\salem-layer-util\ASDF-TMP-const.fasl written
; compilation finished in 0:00:00.062
WARNING:
COMPILE-FILE warned while performing #<COMPILE-OP NIL {23DDA9A9}> on
#<CL-SOURCE-FILE "salem-layer-util" "const">.

debugger invoked on a ASDF:COMPILE-FAILED:
Error while invoking #<COMPILE-OP NIL {23DDA9A9}> on
#<CL-SOURCE-FILE "salem-layer-util" "const">

Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
0: [TRY-RECOMPILING] Try recompiling const
1: [RETRY ] Retry compiling component ("salem-layer-util" "const").
2: [ACCEPT ] Continue, treating
compiling component ("salem-layer-util" "const") as
having been successful.
3: [ABORT ] Exit debugger, returning to top level.

((SB-PCL::FAST-METHOD ASDF:PERFORM (ASDF:COMPILE-OP ASDF:CL-SOURCE-FILE))
#<unavailable argument>
#<unavailable argument>
#<ASDF:COMPILE-OP NIL {23DDA9A9}>
#<ASDF:CL-SOURCE-FILE "salem-layer-util" "const">)
0]


Already asked some hnh/salem java wizards about it but they had no knowledge about Lisp. Right now I'm waiting for boshaw to answer me but who knows how long this might take. :roll: Maybe I can get some help here instead :)



EDIT: Fixed it by editing: packages.lisp
line: (defpackage :slayer-util
to: (defpackage :salem-layer-util

Re: Salem layer util- compiling problem

PostPosted: Sat Sep 29, 2012 9:21 pm
by Ass_Kraken
Goons are lisp hipsters. They had all of their bots in H&H in lisp.

Re: Salem layer util- compiling problem

PostPosted: Sun Sep 30, 2012 2:33 am
by sabinati
boshaw isn't a goon

Re: Salem layer util- compiling problem

PostPosted: Mon Oct 01, 2012 8:29 am
by Chiprel
Updated first post with FIX.

Re: Salem layer util- compiling problem

PostPosted: Mon Oct 01, 2012 2:50 pm
by sabinati
did you get a hold of boshaw or figure it out on your own?

Re: Salem layer util- compiling problem

PostPosted: Mon Oct 01, 2012 3:21 pm
by Chiprel
Had to figure it on my own :(
This tool is much better. Unpacked all graphics that old hnh tools couldn't ;)
There are some minor problems with 3d stuff and new tutorial tips(which got added after boshaw made this tool) but rest works fine.

Re: Salem layer util- compiling problem

PostPosted: Wed Oct 03, 2012 5:06 pm
by APXEOLOG
good program, but additional dependences makes me SAD