Giter VIP home page Giter VIP logo

libnpengine's Issues

Error when compiling: NSBInterpreter.cpp:45:14: error: ‘MAGIC_FUNCTION_DECLARATION’ was not declared in this scope

hikki@kubuntu libnpengine-new % cmake . && make                  
-- Configuring libnpengine version 0.0.0-3b1201fddd
-- Found NPA in /tdd/soft/games/vn/steinsgate/libnpa/include
-- checking for one of the modules 'sdl2'
-- Configuring done
-- Generating done
-- Build files have been written to: /tdd/soft/games/vn/steinsgate/libnpengine-new
Scanning dependencies of target npengine
[ 10%] Building CXX object CMakeFiles/npengine.dir/src/Window.cpp.o
[ 20%] Building CXX object CMakeFiles/npengine.dir/src/NSBInterpreter.cpp.o
/tdd/soft/games/vn/steinsgate/libnpengine-new/src/NSBInterpreter.cpp: In constructor ‘NSBInterpreter::NSBInterpreter(Window*)’:
/tdd/soft/games/vn/steinsgate/libnpengine-new/src/NSBInterpreter.cpp:45:14: error: ‘MAGIC_FUNCTION_DECLARATION’ was not declared in this scope
     Builtins[MAGIC_FUNCTION_DECLARATION] = { &NSBInterpreter::FunctionDeclaration, 0 };
              ^
/tdd/soft/games/vn/steinsgate/libnpengine-new/src/NSBInterpreter.cpp:49:14: error: ‘MAGIC_CMP_LOGICAL_AND’ was not declared in this scope
     Builtins[MAGIC_CMP_LOGICAL_AND] = { &NSBInterpreter::CmpLogicalAnd, 2 };
              ^
/tdd/soft/games/vn/steinsgate/libnpengine-new/src/NSBInterpreter.cpp:50:14: error: ‘MAGIC_CMP_LOGICAL_OR’ was not declared in this scope
     Builtins[MAGIC_CMP_LOGICAL_OR] = { &NSBInterpreter::CmpLogicalOr, 2 };
              ^
/tdd/soft/games/vn/steinsgate/libnpengine-new/src/NSBInterpreter.cpp:53:14: error: ‘MAGIC_CMP_GREATER’ was not declared in this scope
     Builtins[MAGIC_CMP_GREATER] = { &NSBInterpreter::CmpGreater, 2 };
              ^
/tdd/soft/games/vn/steinsgate/libnpengine-new/src/NSBInterpreter.cpp:54:14: error: ‘MAGIC_CMP_LESS’ was not declared in this scope
     Builtins[MAGIC_CMP_LESS] = { &NSBInterpreter::CmpLess, 2 };
              ^
/tdd/soft/games/vn/steinsgate/libnpengine-new/src/NSBInterpreter.cpp:55:14: error: ‘MAGIC_CMP_EQUAL’ was not declared in this scope
     Builtins[MAGIC_CMP_EQUAL] = { &NSBInterpreter::CmpEqual, 2 };
              ^
/tdd/soft/games/vn/steinsgate/libnpengine-new/src/NSBInterpreter.cpp:58:14: error: ‘MAGIC_ADD_EXPRESSION’ was not declared in this scope
     Builtins[MAGIC_ADD_EXPRESSION] = { &NSBInterpreter::AddExpression, 2 };
              ^
/tdd/soft/games/vn/steinsgate/libnpengine-new/src/NSBInterpreter.cpp:59:14: error: ‘MAGIC_SUB_EXPRESSION’ was not declared in this scope
     Builtins[MAGIC_SUB_EXPRESSION] = { &NSBInterpreter::SubExpression, 2 };
              ^
/tdd/soft/games/vn/steinsgate/libnpengine-new/src/NSBInterpreter.cpp:60:14: error: ‘MAGIC_MUL_EXPRESSION’ was not declared in this scope
     Builtins[MAGIC_MUL_EXPRESSION] = { &NSBInterpreter::MulExpression, 2 };
              ^
/tdd/soft/games/vn/steinsgate/libnpengine-new/src/NSBInterpreter.cpp:61:14: error: ‘MAGIC_DIV_EXPRESSION’ was not declared in this scope
     Builtins[MAGIC_DIV_EXPRESSION] = { &NSBInterpreter::DivExpression, 2 };
              ^
/tdd/soft/games/vn/steinsgate/libnpengine-new/src/NSBInterpreter.cpp:62:14: error: ‘MAGIC_MOD_EXPRESSION’ was not declared in this scope
     Builtins[MAGIC_MOD_EXPRESSION] = { &NSBInterpreter::ModExpression, 2 };
              ^
/tdd/soft/games/vn/steinsgate/libnpengine-new/src/NSBInterpreter.cpp:67:14: error: ‘MAGIC_VARIABLE’ was not declared in this scope
     Builtins[MAGIC_VARIABLE] = { &NSBInterpreter::Get, 0 };
              ^
/tdd/soft/games/vn/steinsgate/libnpengine-new/src/NSBInterpreter.cpp:71:14: error: ‘MAGIC_END_FUNCTION’ was not declared in this scope
     Builtins[MAGIC_END_FUNCTION] = { &NSBInterpreter::Return, 0 };
              ^
/tdd/soft/games/vn/steinsgate/libnpengine-new/src/NSBInterpreter.cpp:95:14: error: ‘MAGIC_NEGA_EXPRESSION’ was not declared in this scope
     Builtins[MAGIC_NEGA_EXPRESSION] = { &NSBInterpreter::NegaExpression, 1 };
              ^
make[2]: *** [CMakeFiles/npengine.dir/src/NSBInterpreter.cpp.o] Ошибка 1
make[1]: *** [CMakeFiles/npengine.dir/all] Ошибка 2
make: *** [all] Ошибка 2

CreateMovie: last param optional

And seems to vary. GCLX:
..CreateMovieSPvol
function CreateMovieSPvol("ナット名", 描画優先度, X座標, Y座標, ループ, αチャンネル, "イメージデータ",$音量)
{
//コンフィグのseと音量を同期、ムービー再生中のse音量変更には対応してない
$mv_vol=#SYSTEM_sound_volume_se*$音量/1000;
CreateMovie("ナット名", 描画優先度, X座標, Y座標, ループ, αチャンネル, "イメージデータ",$mv_vol);
SetAlias("ナット名", "ナット名");
}

[Steins Gate] libnpengine crashing when starting new game

Here is the console output:

void NSBInterpreter::CallFunction_(NSBContext*, const string&): Failed to call function Patch
steins-gate: (...)/steins-gate/libnpengine/src/Variable.cpp:106: std::string Variable::ToString(): Assertion `IsString()' failed.
Aborted (core dumped)

I'm using the JAST version of the game and the --exe 1 option

Read some #SYSTEM_ from ini

#SYSTEM_sound_volume_bgm_default = 1000;
#SYSTEM_sound_volume_se_default = 1000;
#SYSTEM_sound_volume_voice_default = 1000;

[サウンド]
;BGMのボリューム(0-1000)
bgm_volume = 600
;SEのボリューム(0-1000)
se_volume = 800
;音声のボリューム(0-1000)
voice_volume = 800

Error during build on Ubuntu Server x64 14.04.1: make[2]: *** [CMakeFiles/npengine.dir/src/Image.cpp.o] Error 1

When I trying to build libnpengine, I get error.

Log:

$ cmake .
-- Configuring libnpengine version 0.5.0-98e74fd91c
-- Found NPA in /home/pax/fgre/libnpa/include
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pax/fgre/libnpengine
$ make
[  5%] Building CXX object CMakeFiles/npengine.dir/src/Image.cpp.o
/home/pax/fgre/libnpengine/src/Image.cpp: In member function 'void Image::LoadImage(const string&, GLenum)':
/home/pax/fgre/libnpengine/src/Image.cpp:52:65: error: 'PNG_FORMAT_GRAY' was not declared in this scope
         pPixels = LoadPNG(pData, Size, Format == GL_LUMINANCE ? PNG_FORMAT_GRAY : PNG_FORMAT_BGRA);
                                                                 ^
/home/pax/fgre/libnpengine/src/Image.cpp:52:83: error: 'PNG_FORMAT_BGRA' was not declared in this scope
         pPixels = LoadPNG(pData, Size, Format == GL_LUMINANCE ? PNG_FORMAT_GRAY : PNG_FORMAT_BGRA);
                                                                                   ^
/home/pax/fgre/libnpengine/src/Image.cpp: In member function 'uint8_t* Image::LoadPNG(uint8_t*, uint32_t, uint8_t)':
/home/pax/fgre/libnpengine/src/Image.cpp:59:5: error: 'png_image' was not declared in this scope
     png_image png;
     ^
/home/pax/fgre/libnpengine/src/Image.cpp:59:15: error: expected ';' before 'png'
     png_image png;
               ^
/home/pax/fgre/libnpengine/src/Image.cpp:60:13: error: 'png' was not declared in this scope
     memset(&png, 0, sizeof(png_image));
             ^
/home/pax/fgre/libnpengine/src/Image.cpp:61:19: error: 'PNG_IMAGE_VERSION' was not declared in this scope
     png.version = PNG_IMAGE_VERSION;
                   ^
/home/pax/fgre/libnpengine/src/Image.cpp:63:59: error: 'png_image_begin_read_from_memory' was not declared in this scope
     if (!png_image_begin_read_from_memory(&png, pMem, Size))
                                                           ^
/home/pax/fgre/libnpengine/src/Image.cpp:67:62: error: 'PNG_IMAGE_SIZE' was not declared in this scope
     uint8_t* pData = new (nothrow) uint8_t[PNG_IMAGE_SIZE(png)];
                                                              ^
/home/pax/fgre/libnpengine/src/Image.cpp:70:28: error: 'png_image_free' was not declared in this scope
         png_image_free(&png);
                            ^
/home/pax/fgre/libnpengine/src/Image.cpp:74:58: error: 'png_image_finish_read' was not declared in this scope
     if (!png_image_finish_read(&png, NULL, pData, 0, NULL))
                                                          ^
make[2]: *** [CMakeFiles/npengine.dir/src/Image.cpp.o] Error 1
make[1]: *** [CMakeFiles/npengine.dir/all] Error 2
make: *** [all] Error 2

gclx: Color params do not always start with #

CreateColorEXsub("亀/絵色赤減", 51, "00FFFF");

function CreateColorEXsub("ナット名", 描画優先度, イメージデータ)
{
CreateColor("ナット名", 描画優先度, 1024, 0, 1024, 576, イメージデータ);
Request("ナット名", SubRender);
SetAlias("ナット名", "ナット名");
Fade("ナット名", 0, 0, null, true);
Move("ナット名", 0, @-1024, @0, null, true);
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.