blaizer / neverhood Goto Github PK
View Code? Open in Web Editor NEWA re-implementation of The Neverhood in Perl
License: Other
A re-implementation of The Neverhood in Perl
License: Other
$ perl Build.PL
IPC::System::Simple required for Fatalised/autodying system() at inc/My/Builder.pm line 5
BEGIN failed--compilation aborted at inc/My/Builder.pm line 5.
Compilation failed in require at Build.PL line 5.
BEGIN failed--compilation aborted at Build.PL line 5.
Can't locate Alien/SDL.pm in @INC (@INC contains: inc /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at Build.PL line 6.
BEGIN failed--compilation aborted at Build.PL line 6.
These can be fixed installing package IPC::System::Simple, Alien::SDL (libipc-system-simple-perl, libalien-sdl-perl for Debian/Ubuntu). It is not covered by the instruction!
Game starts, i can see that animation working.
Then i try to click on smth and it crash.
$ perl nhc.pl
Can't locate object method "clicked" via package "Games::Neverhood::Scene::Nursery::One" at /home/taz/never/Neverhood/Neverhood/lib/Games/Neverhood/Scene/Nursery/One.pm line 64.
Compilation failed in require at nhc.pl line 16.
Type of arg 1 to each must be hash (not array dereference) at lib/Games/Neverhood.pm line 281, near "};"
Compilation failed in require at nhc.pl line 3.
BEGIN failed--compilation aborted at nhc.pl line 3.
--- fixed with replacing @ to %
error loading image DATA/misc/icon.png: Couldn't open DATA/misc/icon.png at /usr/local/lib/perl/5.10.1/SDLx/Surface.pm line 188
SDLx::Surface::load('SDLx::Surface', 'DATA/misc/icon.png') called at lib/Games/Neverhood.pm line 59
Games::Neverhood::init() called at nhc.pl line 4
?
p.s. thank you for efforts
Hello! Where can i get this module?
Hello! Where can i get this module?
taz@genion ~/never/Neverhood $ perl Build.PL
Creating new 'MYMETA.yml' with configuration results
ERROR: Missing required field 'dist_abstract' for metafile
Can't find dist packages without a MANIFEST file
Run 'Build manifest' to generate one
WARNING: Possible missing or corrupt 'MANIFEST' file.
Nothing to enter for 'provides' field in metafile.
Creating new 'Build' script for 'Games-Neverhood' version '0.001'
taz@genion ~/never/Neverhood $ ./Build
Building Games-Neverhood
taz@genion ~/never/Neverhood $ ./Build test
t/00-load.t .. libpng warning: Application was compiled with png.h from libpng-1.4.5
libpng warning: Application is running with png.c from libpng-1.2.44
libpng error: Incompatible libpng version in application and library
t/00-load.t .. 1/?
Failed test 'use Games::Neverhood;'
at t/00-load.t line 6.
Tried to use 'Games::Neverhood'.
Error: Couldn't allocate memory for PNG file or incompatible PNG dll at /home/taz/never/Neverhood/blib/lib/Games/Neverhood/Sprite.pm line 131.
Compilation failed in require at /home/taz/never/Neverhood/blib/lib/Games/Neverhood.pm line 30.
BEGIN failed--compilation aborted at /home/taz/never/Neverhood/blib/lib/Games/Neverhood.pm line 30.
Compilation failed in require at (eval 4) line 2.
BEGIN failed--compilation aborted at (eval 4) line 2.
Use of uninitialized value $Games::Neverhood::VERSION in concatenation (.) or string at t/00-load.t line 13.
Testing Games::Neverhood , Perl 5.012003, /usr/bin/perl5.12.3
Looks like you failed 1 test of 2.
t/00-load.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
Test Summary Report
t/00-load.t (Wstat: 256 Tests: 2 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Files=1, Tests=2, 0 wallclock secs ( 0.11 usr 0.03 sys + 0.63 cusr 0.10 csys = 0.87 CPU)
Result: FAIL
Failed 1/1 test programs. 1/2 subtests failed.
Attached is a patch
From e2b7e522de1b0064af6edaac1faa28e072175bce Mon Sep 17 00:00:00 2001
From: kthakore <[email protected]>
Date: Mon, 3 Oct 2011 13:08:07 -0400
Subject: [PATCH 70/70] Fixed up install
---
Build.PL | 4 ++--
lib/Games/Neverhood/Image.xs | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Build.PL b/Build.PL
index d5323d7..d248da4 100644
--- a/Build.PL
+++ b/Build.PL
@@ -6,8 +6,8 @@ use My::Module::Build;
use Alien::SDL;
use ExtUtils::CBuilder;
-my @cflags = ( Alien::SDL->config('cflags'), File::Spec->catfile('-I' . Alien::SDL->config('prefix'), 'include') );
-my @lflags = Alien::SDL->config('libs', '-lSDL_mixer');
+my @cflags = ExtUtils::CBuilder->new->split_like_shell( File::Spec->catfile('-I' . Alien::SDL->config('prefix'), 'include') );
+my @lflags = ExtUtils::CBuilder->new->split_like_shell( Alien::SDL->config('libs', '-lSDL_mixer') );
my $build = My::Module::Build->new(
module_name => 'Games::Neverhood',
diff --git a/lib/Games/Neverhood/Image.xs b/lib/Games/Neverhood/Image.xs
index acac89a..f5041cb 100644
--- a/lib/Games/Neverhood/Image.xs
+++ b/lib/Games/Neverhood/Image.xs
@@ -4,7 +4,7 @@
#include "ppport.h"
#include <stdio.h>
-#include <SDL.h>
+#include <SDL/SDL.h>
typedef struct {
Uint16 format;
--
1.7.0.4
$ perl nhc.pl
libpng warning: Application was compiled with png.h from libpng-1.4.5
libpng warning: Application is running with png.c from libpng-1.2.44
libpng error: Incompatible libpng version in application and library
Couldn't allocate memory for PNG file or incompatible PNG dll at lib/Games/Neverhood/Sprite.pm line 131.
Compilation failed in require at lib/Games/Neverhood.pm line 30.
BEGIN failed--compilation aborted at lib/Games/Neverhood.pm line 30.
Compilation failed in require at nhc.pl line 3.
BEGIN failed--compilation aborted at nhc.pl line 3.
OS: Gentoo
Perl (v5.12.3) built for x86_64-linux
Latest SDL from cpan.
P.S. thak you, for your work, please make donate button.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.