Jump to content
Korean Random


  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Noob

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. For some reason i am getting wierd errors while there is nothing wrong with my code (I think), the python log isn't very clear about the problem but i will add the log and the mod. Hopefully someone understands whats going wrong mod_Gamesense_v0.pyc python.log
  2. @The Illusion Well its gonna be a lot of reading stuff and trying stuff and see what happends, I am also a beginner at making a world of tanks mod. But i just started with this example: https://bitbucket.org/_vb_/wot.mods/wiki/GettingStarted Also to compile your code you can use: https://koreanrandom.com/forum/topic/15280-pjorion-редактирование-компиляция-декомпиляция-обфускация-модов-версия-135-дата-23082017/#comments I write my code in visual studio code and then copy it pjorion to compile it. If you have any questions feel free to ask me or contact me on discord: pipje2001#5929
  3. @The Illusion Do you have any experiance in python? if not its gonna need a whole lot of explaination to make a mod yourself
  4. @MixaillThanks for the response, a wotmod is not such a big deal so i guess using xfm.native is fine. But is there some explanation about how to use it? i am not that experienced and i can't find an explanation anywhere
  5. I see why it's bad to use CD but what I am trying is just not possible in python so I don't have a choice :/ Is xfm only needed to build the file or also when using the mod?
  6. I see, I want to be as independent from other stuff as possible so I will try the second option I think, also why is it bad to use pyd?
  7. I wouldn't ask it if was possible in pure python :) , but why should I use it?
  8. Is it possible to import a pyd file? i tried to import the file testC.pyd with this as code: (not actually a usefull code but just for testing) #include <Python.h> static PyObject *testCError; static PyObject* testC_say_hello(PyObject* self, PyObject *args){ const char* msg; int sts=0; if(!PyArg_ParseTuple(args, "s", &msg)){ return NULL; } if(strcmp(msg, "this_is_an_error") == 0){ PyErr_SetString(testCError, "This is a test exception"); return NULL; }else{ printf("This is C world\nYour message is: %s\n", msg); sts=21; } return Py_BuildValue("i", sts); } static PyMethodDef testC_methods[] = { {"say_hello", testC_say_hello, METH_VARARGS, "description"}, {NULL, NULL, 0, NULL} }; PyMODINIT_FUNC inittestC(void){ PyObject *m; m = Py_InitModule("testC", testC_methods); if(m == NULL) return; testCError = PyErr_NewException("testC.error", NULL, NULL); Py_INCREF(testCError); PyModule_AddObject(m, "error", testCError); } and i want to import this from mod_test.pyc: import testC status = testC.say_hello("morning") both files are in C:\Games\World_of_Tanks_EU\res_mods\\scripts\client\gui\mods but when i try this it just gives me this error: ERROR: [EXCEPTION] (scripts/client/gui/mods/__init__.py, 74): Traceback (most recent call last): File "scripts/client/gui/mods/__init__.py", line 67, in _findValidMODs File "scripts/common/Lib/importlib/__init__.py", line 37, in import_module File "mod_test", line 2, in <module> ImportError: No module named testC i feel like i am doing something very simple wrong or it isn't even possible in world of tanks. Does anyone has an idea?
  9. @DKRUBENthanks, but i don't want to use XVM thats why i wanted to know how it works without it
  10. Alright, i don't want to use xvm mainly because there is a lot of discussion about this right now (or is that something else?). I tried to make my own hook but i am just doing something and it doesn't seem to work (which is not suprising because i don't understand shit about how it actually works XD) so i tried this: from gui.Scaleform.daapi.view.battle.shared.indicators import SixthSenseIndicator def new_show(self): old_show(self) print("spotted") old_show = SixthSenseIndicator.show SSixthSenseIndicator.show = new_show but this resulted in a lot of error's
  11. Thanks for the quick reply, but this is using xvm right?
  12. @Kotyarko_O Its a long time ago since i needed some help. In the meanwhile i got a lot of stuff working. But one thing i can't find is the function which runs when i am spotted. I want to run some code when i am spotted but i can't seem to find how, have you got any idea?
  13. @Kotyarko_O No problem at all, its good to know it is possible though, if you have time for it and you like to help it would be really appreciated
  14. @Kotyarko_O Thats awesome, so i already got a next question, i want to try to dynamically create a textinput for the modsettingapi, so if a certain value is 5 it needs to create 5 textinputs, is this even possible or not?
  • Create New...