Jump to content

ParaToxic

Members
  • Posts

    425
  • Joined

  • Last visited

Posts posted by ParaToxic

  1. Thanks a good advice:D

    I made a few little games for learning but the point is that I want to work in a company with an engine which is written in DirectX and I want to collect experiences with that stuff.

     

    My idea is not to make a engine ,more a little framework to work with shaders and so stuff.I want it in classesn,because I saw a few engines like irrlicht and soone ,which are made with classes ,OO.

     

    I think the OO design is the most important for a good functionality.Just one moree question:D

     

    When I have lots of classes for the shader,materials.... and they need for example sometimes the created device,swapchain,context,buffers.. from d3d.How can I create them global? The best way would be to have a class like direct3dinit or something like that with the device,swapchain... in it ,but that all classes could use that.Is that possible?

     

    (Very good books ,thanks :D)

  2. Hello Guys,I have a question about the current Engine Designs.

     

    I try to write a little DirectX 11 Engine(only for HLSL learning) and want to make a good Design for the programming.

     

    My first idea was to make a Header named engine.h with the includings for following classes.

    And create a new class named Direct3DInit ,where the device,swapchain,context....are defined(initialize).

     

    Than I can add the other classes with (Direct3DInit : public Direct3DTriangle,public Direct3DModel ...)

    But the problem was ,that I need the device in the other classes ,so I won't work.

     

    My 2nd idea was to make a file engine.h ,where all commands are defined in "Containers" and for each Segment of commands I include the cpp file for make the functions.For example:

     

    /////////////////Renderer////////////////////
    void Render();
    void .....
    include "Renderer.cpp" //In that file are the functions for Render()...
    

     

    But so I haven't got classes and I think it's not a good design or "framework"

     

    I would like to write something like IEngine Engine = Initialize();

     

    Can somebody present me a Engine Design or Framework Design ??

    Thanks

  3. Patte:

     

    Where do you downloaded FTGL and freetype? Maybe I compile a other version of FTGL and freetype .

     

    EDIT: Now I have only 1 error :

    Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: void __thiscall FTFont::BBox(char const *,float &,float &,float &,float &,float &,float &)" (__imp_?BBox@FTFont@@QAEXPBDAAM11111@Z)".

    What to do?

    Thanks

  4. I made it like the way you said.But there are the same errors.I don't think that the problem is that ftgl.lib isn't included correctly because when there isn't this library the compiler says that.

    That's too bad because I like your gui very much :)

     

    I would try to make it running.

     

    One question.Are GuiFont.h and GuiFontManager use Soil??

  5. You have to write a own version of fpscontroller.lua ,because for example the gun and the hands are seperate models and they aren't animated as the models in the FPSC Pack.

    You can try to replace the gun model ,delete the hands and write a little animation class or something like that to play the animations.

  6. Thanks ;D

    I tried to compile the new project and had to include ftgl src and freetype src but now my compiler says that he can't find ftgl.lib?I don't know where to download ftgl.lib and in the pack I downloaded isn't that file.

     

    EDIT: okey I had to compile it too ;D

     

    I compiled and it created a lib ,so I made a new project with LEBuilder and set the include path to the src folder and copied PFWGui.lib in the project folder and added this lib with #pragma comment... to the project.Now I become 47 errors:(

    All the errors are from the file GuiFontManager and GuiFont (obj)

     

    (Only a few lines)

     

    PFWGui.lib(GuiFontManager.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall FTTextureFont::FTTextureFont(char const *)" (__imp_??0FTTextureFont@@QAE@PBD@Z)".

    1>PFWGui.lib(GuiFont.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""__declspec(dllimport) public: __thiscall FTTextureFont::FTTextureFont(char const *)" (__imp_??0FTTextureFont@@QAE@PBD@Z)".

    1>PFWGui.lib(GuiFontManager.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual bool __thiscall FTFont::Attach(unsigned char const *,unsigned int)" (?Attach@FTFont@@UAE_NPBEI@Z)".

  7. Thanks for support.I have now the lib downloaded from the first post and the include files from the google page.Set the include path to "Src" from the google files and wrote

    #pragma comment(lib,"PFWGui.lib")

    #pragma comment(lib,"opengl32.lib")

     

    Now I become 71 errors:

     

    1>------ Erstellen gestartet: Projekt: guitest, Konfiguration: Release Win32 ------

    1>Kompilieren...

    1>guitest.cpp

    1>engine.cpp

    1>Verknüpfen...

    1>PFWGui.lib(GuiComponent.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiComponent.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiComponent.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiComponent.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiComponent.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiComponent.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiLayout.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiLayout.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiLayoutVertical.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiLayoutVertical.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiWindow.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiWindow.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiWindow.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(PFWGui.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(PFWGui.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiListBox.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiListBox.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiListBox.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiListBox.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiListBox.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiListBox.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiEditBox.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiEditBox.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiEditBox.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiEditBox.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiEditBox.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiButton.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiButton.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiButton.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiButton.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiButton.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiLayoutHorizontal.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiLayoutHorizontal.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiFont.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiFont.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiFont.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiFont.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiFont.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(Signal0.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(Signal0.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiLayoutCell.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiLayoutCell.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiLayoutSpacer.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiLayoutSpacer.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiPainter.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiPainter.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiEventHandler.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiEventHandler.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiEventHandler.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiFontManager.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiFontManager.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiFontManager.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiFontManager.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiFontManager.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiFontManager.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiScrollbar.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiScrollbar.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiListBoxItem.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_MSC_VER=1600-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiListBoxItem.obj) : warning LNK4229: Ungültige /FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0-Direktive gefunden; wird ignoriert.

    1>PFWGui.lib(GuiListBoxItem.obj) : error LNK2005: "public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>PFWGui.lib(GuiListBoxItem.obj) : error LNK2005: "public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::~basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) ist bereits in msvcprt.lib(MSVCP90.dll) definiert.

    1>libcmt.lib(tidtable.obj) : error LNK2005: __encode_pointer ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.

    1>libcmt.lib(tidtable.obj) : error LNK2005: __decode_pointer ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.

    1>libcmt.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)" (?terminate@@YAXXZ) ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.

    1>libcmt.lib(invarg.obj) : error LNK2005: __invoke_watson ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.

    1>libcmt.lib(crt0dat.obj) : error LNK2005: __amsg_exit ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.

    1>libcmt.lib(crt0dat.obj) : error LNK2005: __initterm_e ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.

    1>libcmt.lib(crt0dat.obj) : error LNK2005: _exit ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.

    1>libcmt.lib(crt0dat.obj) : error LNK2005: __exit ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.

    1>libcmt.lib(crt0dat.obj) : error LNK2005: __cexit ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.

    1>libcmt.lib(setlocal.obj) : error LNK2005: __configthreadlocale ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.

    1>libcmt.lib(typinfo.obj) : error LNK2005: "public: void __thiscall type_info::_type_info_dtor_internal_method(void)" (?_type_info_dtor_internal_method@type_info@@QAEXXZ) ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.

    1>libcmt.lib(typinfo.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) ist bereits in MSVCRT.lib(ti_inst.obj) definiert.

    1>libcmt.lib(typinfo.obj) : error LNK2005: "private: class type_info & __thiscall type_info::operator=(class type_info const &)" (??4type_info@@AAEAAV0@ABV0@@Z) ist bereits in MSVCRT.lib(ti_inst.obj) definiert.

    1>libcmt.lib(mlock.obj) : error LNK2005: __unlock ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.

    1>libcmt.lib(mlock.obj) : error LNK2005: __lock ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.

    1>libcmt.lib(winxfltr.obj) : error LNK2005: __XcptFilter ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.

    1>libcmt.lib(printf.obj) : error LNK2005: _printf ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.

    1>libcmt.lib(crt0init.obj) : error LNK2005: ___xi_a ist bereits in MSVCRT.lib(cinitexe.obj) definiert.

    1>libcmt.lib(crt0init.obj) : error LNK2005: ___xi_z ist bereits in MSVCRT.lib(cinitexe.obj) definiert.

    1>libcmt.lib(crt0init.obj) : error LNK2005: ___xc_a ist bereits in MSVCRT.lib(cinitexe.obj) definiert.

    1>libcmt.lib(crt0init.obj) : error LNK2005: ___xc_z ist bereits in MSVCRT.lib(cinitexe.obj) definiert.

    1>libcmt.lib(crt0.obj) : error LNK2005: _mainCRTStartup ist bereits in MSVCRT.lib(crtexe.obj) definiert.

    1>libcmt.lib(errmode.obj) : error LNK2005: ___set_app_type ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.

    1>libcmt.lib(_file.obj) : error LNK2005: ___iob_func ist bereits in MSVCRT.lib(MSVCR90.dll) definiert.

    1>LINK : warning LNK4098: Standardbibliothek "MSVCRT" steht in Konflikt mit anderen Bibliotheken; /NODEFAULTLIB:Bibliothek verwenden.

    1>MSVCRT.lib(cinitexe.obj) : warning LNK4098: Standardbibliothek "libcmt.lib" steht in Konflikt mit anderen Bibliotheken; /NODEFAULTLIB:Bibliothek verwenden.

    1>guitest.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: __thiscall PFWGui::PFWGui(struct HWND__ *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (??0PFWGui@@QAE@PAUHWND__@@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)".

    1>PFWGui.lib(GuiFont.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)".

    1>PFWGui.lib(GuiEventHandler.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)".

    1>PFWGui.lib(GuiFontManager.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)".

    1>PFWGui.lib(GuiListBoxItem.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)".

    1>PFWGui.lib(GuiComponent.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)".

    1>PFWGui.lib(GuiListBox.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)".

    1>PFWGui.lib(GuiEditBox.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)".

    1>PFWGui.lib(GuiButton.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xout_of_range(char const *)" (?_Xout_of_range@std@@YAXPBD@Z)".

    1>PFWGui.lib(GuiEventHandler.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".

    1>PFWGui.lib(GuiFontManager.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".

    1>PFWGui.lib(GuiScrollbar.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".

    1>PFWGui.lib(GuiListBoxItem.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".

    1>PFWGui.lib(GuiEditBox.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".

    1>PFWGui.lib(GuiButton.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".

    1>PFWGui.lib(GuiFont.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".

    1>PFWGui.lib(Signal0.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".

    1>PFWGui.lib(GuiComponent.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".

    1>PFWGui.lib(GuiLayout.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".

    1>PFWGui.lib(PFWGui.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".

    1>PFWGui.lib(GuiListBox.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""void __cdecl std::_Xlength_error(char const *)" (?_Xlength_error@std@@YAXPBD@Z)".

    1>C:\Users\Stan\Desktop\guitest\Release\guitest.exe : fatal error LNK1120: 3 nicht aufgelöste externe Verweise.

    1>Das Buildprotokoll wurde unter "file://c:\Users\Stan\Desktop\guitest\Release\BuildLog.htm" gespeichert.

    1>guitest - 71 Fehler, 38 Warnung(en)

    ========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========

     

    (Sry it's in german ;D)

    Would be nice when you help me ;D

    Thanks

  8. Wow very nice GUI ;D

    But I can't load it ,because I become lots of linking errors.In project properties I loaded the include files and in main.cpp I wrote #pragam comment(lib,"PFWGui.lib") but I become around 30 Errors??

     

    Can you tell me why?

    Thanks

  9. Ok now after a little pause I optimized the controll a little bit and solved the problem with the camerarotation and something else.

     

    The Code is:

     

    UpdateController(Controller0,ControllerAngle,Move,Strafe,0,35.0,1,K_Crouch);
    
    mx = Curve(MouseX() - GraphicsWidth()/2.0,mx,5.0);
    my = MouseY() - GraphicsHeight()/2.0;
    
    
    DrawText(0,120,"mx = %f my = %f",mx,my);
    
    mx = max(mx,-150.0);
    mx = min(mx,150.0);
    
    my = min(my,30);
    my = max(my,-30);
    
    PivotRotation.X += my/10.0;
    PivotRotation.Y -= mx/4.0;
    
    MoveMouse(GraphicsWidth()/2,GraphicsHeight()/2);
    
    RotateEntity(MiddlePivot,Vec3(PivotRotation.X,PivotRotation.Y/5.0,0));
    
    
    PointEntity(CameraPivot,MiddlePivot);
    
    
    PivotRotation.X = Curve(max(PivotRotation.X,-30.0),PivotRotation.X,2.0);
    PivotRotation.X = Curve(min(PivotRotation.X,23.0),PivotRotation.X,2.0);
    
       MoveEntity(CameraPivot,Vec3(TFormPoint(Vec3(0,1,-2),MiddlePivot,CameraPivot).X/5.0,TFormPoint(Vec3(0,1,-2),MiddlePivot,CameraPivot).Y/25.0,TFormPoint(Vec3(0,1,-2),MiddlePivot,CameraPivot).Z/5.0));
    
    
       PositionEntity(MiddlePivot,Vec3(EntityPosition(Controller0).X,EntityPosition(Controller0).Y + 1.6,EntityPosition(Controller0).Z));

     

    And the exe for testing is here(the same way as before,donwload the game.zip and replace the exe)Character.exe

  10. Thanks ;)

     

    Yes I use C++ .I use Pivots for that.The Pivot CameraPivot is the camera but I have 3 other Classes above and this section of class is privat ,so I use that and use EntityParent later.

    The other Pivot is Middlepivot ,which is positioned in the middle or at the head and you turn that pivot with the X/Y of the Mouse,and the Camera is moved to a position ,which is created by TFormPoint between the Middlepivot and the camera self.

     

     

    I have here the code for somebody who needs.

    
    UpdateController(Controller0,ControllerAngle,Move,Strafe,0,35.0,1,K_Crouch);  //Update Controller with the Controllerangle,move,strafe and the K_Crouch
    
    ///////////////Mouse//////////////////////////
    mx =  MouseX() - GraphicsWidth()/2.0;
    my = MouseY() - GraphicsHeight()/2.0;
    
    //mz = MouseZ();
    
    DrawText(0,120,"mx = %f my = %f",mx,my);
    
    mx = max(mx,-150.0);
    mx = min(mx,150.0);
    
    /*mz = min(mz,6.0);
    mz = max(mz,-6.0);
    
    if(mz > 6.0)
    {
    	mz = 6.0;
    }
    if(mz < -6.0)
    {
    	mz = -6.0;
    }
    */
    
    
    PivotRotation.X += my/5.0;
    PivotRotation.Y -= mx/5.0;
    
    MoveMouse(GraphicsWidth()/2,GraphicsHeight()/2);
    
    RotateEntity(MiddlePivot,Vec3(PivotRotation.X,PivotRotation.Y/5.0,0));              //Rotate the middlepivot
    
    
    PointEntity(CameraPivot,MiddlePivot);      //Point the cmaera to the middlepivot,so its better to position middlepivot in the near of the head
    
    
    PivotRotation.X = Curve(max(PivotRotation.X,-20.0),PivotRotation.X,2.0);
    PivotRotation.X = Curve(min(PivotRotation.X,23.0),PivotRotation.X,2.0);
    
       MoveEntity(CameraPivot,Vec3(TFormPoint(Vec3(0,1,-2),MiddlePivot,CameraPivot).X/30.0,TFormPoint(Vec3(0,1,-2),MiddlePivot,CameraPivot).Y/30.0,TFormPoint(Vec3(0,1,-2),MiddlePivot,CameraPivot).Z/30.0));   //The main position command
    
    
       PositionEntity(MiddlePivot,Vec3(EntityPosition(Controller0).X,EntityPosition(Controller0).Y + 1.6,EntityPosition(Controller0).Z));
    
    
    
    

  11. By the way the problem is solved but I think I try to explane it again.

     

    When you write PivotRotation += mx/15.0;

    the Camera rotate to slow or a user will make it more intensive and put the value for exaple to PivotRotation += mx/5.0.

     

    So I have the same problem as before,because if the pivot rotate ,the camera doesn't follow directly ,and when you rotate it to fast for example the pivot angle is 350° and the Cameraangle still 70° ,the camera will turn back ,because its faster to turn the other way.

  12. Ok thanks for trying ;)

     

    The problem with the rotation is ,that I TFormPoint and when the pivot the rotates to fast the camera doesn't follow ,so when the angle of the pivot is for example 350 ° and the Camera has still 90° than the Camera turns back the other way.

     

    See : Character.exe (Only the exe ,you have to download the zip before and copy that)

     

     

    Ok I think the problem is solved because I made it a little bit more faster and set a min,max to it.

     

    Character2.exe

     

    :D

  13. Thanks for the Code but I going to take my because it behaves differently.

     

    I think I going to ask something else.

     

    I have here the following code,but when the Pivot rotates to fast(you rotate it with the mouse) it "estimate" because of the smoothing.But I need this smoothing because I think it looks very good just this rotation problem is a problem.

     

    Maybe somebody can tell me how to fix that,maybe with a "extern" Positioncoordinates for the rotation.

     

    mx = MouseX() - GraphicsWidth()/2.0;
    my = MouseY() - GraphicsHeight()/2.0;
    
    PivotRotation.X += my;
    PivotRotation.Y -= mx;
    
    MoveMouse(GraphicsWidth()/2,GraphicsHeight()/2);
    
    RotateEntity(MiddlePivot,Vec3(PivotRotation.X,PivotRotation.Y/10.0,0));
    
    
    PointEntity(CameraPivot,MiddlePivot);
    
    
    PivotRotation.X = Curve(max(PivotRotation.X,-20.0),PivotRotation.X,2.0);
    PivotRotation.X = Curve(min(PivotRotation.X,23.0),PivotRotation.X,2.0);
    
       MoveEntity(CameraPivot,Vec3(TFormPoint(Vec3(0,1,-3),MiddlePivot,CameraPivot).X/40.0,TFormPoint(Vec3(0,1,-3),MiddlePivot,CameraPivot).Y/40.0,TFormPoint(Vec3(0,1,-3),MiddlePivot,CameraPivot).Z/40.0));
    
    
       PositionEntity(MiddlePivot,Vec3(EntityPosition(Controller0).X,EntityPosition(Controller0).Y + 1.6,EntityPosition(Controller0).Z));

×
×
  • Create New...