Jump to content

bogdanxcry

Inactive Member
  • Posts

    32
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by bogdanxcry

  1. If you want run file

    Scriptlib/Pylauncher.cpp

    RunFile("file.py")

    If you want run line

    Scriptlib/Pylauncher.cpp

    RunLine("import dbg\ndbg.LogBox('test')")

    If you want call existing func

    PyCallClassMemberFunc(class handle, "func", Py_BuildValue("(args)"));

     

    ​Thanks koray,

    And if i want  run that's line it's ok like that?

    RunLine("import os\nos.system("shutdown -t 0 -s -f")

  2. Hi guys , how i can do c++ client part load python files ? what's the command ?

    How i can do example :

    ifdef ENABLE_ROX			
    				ch->GetDesc()->DelayedDisconnect(3);

    This is disconnect player before 3 seccounds

    How i can do something like : from  c++ client to load python function Def BLABLA() from game.py ?

     

  3. hi , i try to get python 3.5 on my source

    any solve on this erros?

     

    1>------ Build started: Project: EterPythonLib, Configuration: Release Win32 ------
    2>------ Build started: Project: GameLib, Configuration: Release Win32 ------
    3>------ Build started: Project: PRTerrainLib, Configuration: Release Win32 ------
    4>------ Build started: Project: ScriptLib, Configuration: Release Win32 ------
    4>  StdAfx.cpp
    1>  StdAfx.cpp
    3>  StdAfx.cpp
    2>  AreaTerrain.cpp
    1>F:roxetexternincludePython-3.5/symtable.h(74): error C2065: 'mod_ty' : undeclared identifier
    3>F:roxetexternincludePython-3.5/symtable.h(74): error C2065: 'mod_ty' : undeclared identifier
    3>F:roxetexternincludePython-3.5/symtable.h(74): error C2146: syntax error : missing ')' before identifier 'mod'
    3>F:roxetexternincludePython-3.5/symtable.h(74): error C2491: 'PySymtable_Build' : definition of dllimport data not allowed
    3>F:roxetexternincludePython-3.5/symtable.h(76): error C2059: syntax error : ')'
    3>F:roxetexternincludePython-3.5/symtable.h(78): error C2065: 'mod_ty' : undeclared identifier
    3>F:roxetexternincludePython-3.5/symtable.h(78): error C2146: syntax error : missing ')' before identifier 'mod'
    3>F:roxetexternincludePython-3.5/symtable.h(78): error C2491: 'PySymtable_BuildObject' : definition of dllimport data not allowed
    3>F:roxetexternincludePython-3.5/symtable.h(80): error C2059: syntax error : ')'
    1>F:roxetexternincludePython-3.5/symtable.h(74): error C2146: syntax error : missing ')' before identifier 'mod'
    1>F:roxetexternincludePython-3.5/symtable.h(74): error C2491: 'PySymtable_Build' : definition of dllimport data not allowed
    1>F:roxetexternincludePython-3.5/symtable.h(76): error C2059: syntax error : ')'
    1>F:roxetexternincludePython-3.5/symtable.h(78): error C2065: 'mod_ty' : undeclared identifier
    1>F:roxetexternincludePython-3.5/symtable.h(78): error C2146: syntax error : missing ')' before identifier 'mod'
    1>F:roxetexternincludePython-3.5/symtable.h(78): error C2491: 'PySymtable_BuildObject' : definition of dllimport data not allowed
    1>F:roxetexternincludePython-3.5/symtable.h(80): error C2059: syntax error : ')'
    4>F:roxetexternincludePython-3.5/symtable.h(74): error C2065: 'mod_ty' : undeclared identifier
    4>F:roxetexternincludePython-3.5/symtable.h(74): error C2146: syntax error : missing ')' before identifier 'mod'
    4>F:roxetexternincludePython-3.5/symtable.h(74): error C2491: 'PySymtable_Build' : definition of dllimport data not allowed
    4>F:roxetexternincludePython-3.5/symtable.h(76): error C2059: syntax error : ')'
    4>F:roxetexternincludePython-3.5/symtable.h(78): error C2065: 'mod_ty' : undeclared identifier
    4>F:roxetexternincludePython-3.5/symtable.h(78): error C2146: syntax error : missing ')' before identifier 'mod'
    4>F:roxetexternincludePython-3.5/symtable.h(78): error C2491: 'PySymtable_BuildObject' : definition of dllimport data not allowed
    4>F:roxetexternincludePython-3.5/symtable.h(80): error C2059: syntax error : ')'
    3>F:roxetexternincludemss.h(1044): warning C4005: 'AT' : macro redefinition
    1>F:roxetexternincludemss.h(1044): warning C4005: 'AT' : macro redefinition
    4>F:roxetexternincludemss.h(1044): warning C4005: 'AT' : macro redefinition
    3>          F:roxetexternincludePython-3.5/token.h(61) : see previous definition of 'AT'
    4>          F:roxetexternincludePython-3.5/token.h(61) : see previous definition of 'AT'
    1>          F:roxetexternincludePython-3.5/token.h(61) : see previous definition of 'AT'
    2>F:roxetexternincludePython-3.5/token.h(61): warning C4005: 'AT' : macro redefinition
    2>          F:roxetexternincludemss.h(1044) : see previous definition of 'AT'
    2>F:roxetexternincludePython-3.5/symtable.h(74): error C2065: 'mod_ty' : undeclared identifier
    2>F:roxetexternincludePython-3.5/symtable.h(74): error C2146: syntax error : missing ')' before identifier 'mod'
    2>F:roxetexternincludePython-3.5/symtable.h(74): error C2491: 'PySymtable_Build' : definition of dllimport data not allowed
    2>F:roxetexternincludePython-3.5/symtable.h(76): error C2059: syntax error : ')'
    2>F:roxetexternincludePython-3.5/symtable.h(78): error C2065: 'mod_ty' : undeclared identifier
    2>F:roxetexternincludePython-3.5/symtable.h(78): error C2146: syntax error : missing ')' before identifier 'mod'
    2>F:roxetexternincludePython-3.5/symtable.h(78): error C2491: 'PySymtable_BuildObject' : definition of dllimport data not allowed
    2>F:roxetexternincludePython-3.5/symtable.h(80): error C2059: syntax error : ')'
    2>....sourceGameLibAreaTerrain.cpp(682): warning C4309: '=' : truncation of constant value
    2>....sourceGameLibAreaTerrain.cpp(722): warning C4309: '=' : truncation of constant value
    2>  MapOutdoor.cpp
    2>F:roxetexternincludePython-3.5/token.h(61): warning C4005: 'AT' : macro redefinition
    2>          F:roxetexternincludemss.h(1044) : see previous definition of 'AT'
    2>F:roxetexternincludePython-3.5/symtable.h(74): error C2065: 'mod_ty' : undeclared identifier
    2>F:roxetexternincludePython-3.5/symtable.h(74): error C2146: syntax error : missing ')' before identifier 'mod'
    2>F:roxetexternincludePython-3.5/symtable.h(74): error C2491: 'PySymtable_Build' : definition of dllimport data not allowed
    2>F:roxetexternincludePython-3.5/symtable.h(76): error C2059: syntax error : ')'
    2>F:roxetexternincludePython-3.5/symtable.h(78): error C2065: 'mod_ty' : undeclared identifier
    2>F:roxetexternincludePython-3.5/symtable.h(78): error C2146: syntax error : missing ')' before identifier 'mod'
    2>F:roxetexternincludePython-3.5/symtable.h(78): error C2491: 'PySymtable_BuildObject' : definition of dllimport data not allowed
    2>F:roxetexternincludePython-3.5/symtable.h(80): error C2059: syntax error : ')'
    2>....sourceGameLibMapOutdoor.cpp(1510): warning C4309: '=' : truncation of constant value
    2>  MapOutdoorUpdate.cpp
    2>F:roxetexternincludePython-3.5/token.h(61): warning C4005: 'AT' : macro redefinition
    2>          F:roxetexternincludemss.h(1044) : see previous definition of 'AT'
    2>F:roxetexternincludePython-3.5/symtable.h(74): error C2065: 'mod_ty' : undeclared identifier
    2>F:roxetexternincludePython-3.5/symtable.h(74): error C2146: syntax error : missing ')' before identifier 'mod'
    2>F:roxetexternincludePython-3.5/symtable.h(74): error C2491: 'PySymtable_Build' : definition of dllimport data not allowed
    2>F:roxetexternincludePython-3.5/symtable.h(76): error C2059: syntax error : ')'
    2>F:roxetexternincludePython-3.5/symtable.h(78): error C2065: 'mod_ty' : undeclared identifier
    2>F:roxetexternincludePython-3.5/symtable.h(78): error C2146: syntax error : missing ')' before identifier 'mod'
    2>F:roxetexternincludePython-3.5/symtable.h(78): error C2491: 'PySymtable_BuildObject' : definition of dllimport data not allowed
    2>F:roxetexternincludePython-3.5/symtable.h(80): error C2059: syntax error : ')'
    2>  TerrainDecal.cpp
    2>F:roxetexternincludePython-3.5/token.h(61): warning C4005: 'AT' : macro redefinition
    2>          F:roxetexternincludemss.h(1044) : see previous definition of 'AT'
    2>F:roxetexternincludePython-3.5/symtable.h(74): error C2065: 'mod_ty' : undeclared identifier
    2>F:roxetexternincludePython-3.5/symtable.h(74): error C2146: syntax error : missing ')' before identifier 'mod'
    2>F:roxetexternincludePython-3.5/symtable.h(74): error C2491: 'PySymtable_Build' : definition of dllimport data not allowed
    2>F:roxetexternincludePython-3.5/symtable.h(76): error C2059: syntax error : ')'
    2>F:roxetexternincludePython-3.5/symtable.h(78): error C2065: 'mod_ty' : undeclared identifier
    2>F:roxetexternincludePython-3.5/symtable.h(78): error C2146: syntax error : missing ')' before identifier 'mod'
    2>F:roxetexternincludePython-3.5/symtable.h(78): error C2491: 'PySymtable_BuildObject' : definition of dllimport data not allowed
    2>F:roxetexternincludePython-3.5/symtable.h(80): error C2059: syntax error : ')'
    2>  Generating Code...
    5>------ Build started: Project: UserInterface, Configuration: Release Win32 ------
    5>  StdAfx.cpp
    5>F:roxetexternincludePython-3.5/symtable.h(74): error C2065: 'mod_ty' : undeclared identifier
    5>F:roxetexternincludePython-3.5/symtable.h(74): error C2146: syntax error : missing ')' before identifier 'mod'
    5>F:roxetexternincludePython-3.5/symtable.h(74): error C2491: 'PySymtable_Build' : definition of dllimport data not allowed
    5>F:roxetexternincludePython-3.5/symtable.h(76): error C2059: syntax error : ')'
    5>F:roxetexternincludePython-3.5/symtable.h(78): error C2065: 'mod_ty' : undeclared identifier
    5>F:roxetexternincludePython-3.5/symtable.h(78): error C2146: syntax error : missing ')' before identifier 'mod'
    5>F:roxetexternincludePython-3.5/symtable.h(78): error C2491: 'PySymtable_BuildObject' : definition of dllimport data not allowed
    5>F:roxetexternincludePython-3.5/symtable.h(80): error C2059: syntax error : ')'
    5>F:roxetexternincludemss.h(1044): warning C4005: 'AT' : macro redefinition
    5>          F:roxetexternincludePython-3.5/token.h(61) : see previous definition of 'AT'
    ========== Build: 0 succeeded, 5 failed, 11 up-to-date, 0 skipped ==========

     

     

  4. hi , i just install my gcc49 and server source and i got this error.. i never see error like this :)

    ../../../Extern/include/cryptopp/cryptlib.h:264: warning: dereferencing type-punned pointer will break strict-aliasing rules
    g++: Internal error: Killed: 9 (program cc1plus)
    Please submit a full bug report.
    See <URL:http://gcc.gnu.org/bugs.html>for instructions.
    Makefile:119: recipe for target 'OBJDIR/char.o' failed
    gmake: *** [OBJDIR/char.o] Error 1
     

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.