Quantcast

Jump to content

» «
Photo

[V|REL] Script Hook V Python 3k

V Released
49 replies to this topic
headscript
  • headscript

    Punk-ass Bitch

  • Members
  • Joined: 15 Apr 2015
  • Germany

#31

Posted 31 May 2015 - 11:27 PM

 

i kinda wanted to rewrite it from scratch using boost python,  a AST parser and Python 2.7 with Cython 

 

I respect your enthusiasm, but what would we gain from this approach?

 

less decentralization more centralization when i integrate it into my lua scripthook


lgrahl
  • lgrahl

    Player Hater

  • Members
  • Joined: 11 May 2015
  • Germany

#32

Posted 01 June 2015 - 11:59 AM

 

 

i kinda wanted to rewrite it from scratch using boost python,  a AST parser and Python 2.7 with Cython 

 

I respect your enthusiasm, but what would we gain from this approach?

 

less decentralization more centralization when i integrate it into my lua scripthook

 

 

Sorry, I really don't understand where this is going. Let me rephrase the question: What would your LUA script hook gain from this? Respectively, what would LUA scripters be able to do what they can't do now? Or do you just want to merge both languages into a single ASI plugin?


headscript
  • headscript

    Punk-ass Bitch

  • Members
  • Joined: 15 Apr 2015
  • Germany

#33

Posted 01 June 2015 - 12:40 PM

 

 

 

i kinda wanted to rewrite it from scratch using boost python,  a AST parser and Python 2.7 with Cython 

 

I respect your enthusiasm, but what would we gain from this approach?

 

less decentralization more centralization when i integrate it into my lua scripthook

 

 

Sorry, I really don't understand where this is going. Let me rephrase the question: What would your LUA script hook gain from this? Respectively, what would LUA scripters be able to do what they can't do now? Or do you just want to merge both languages into a single ASI plugin?

 

Or do you just want to merge both languages into a single ASI plugin?

thats it and allowing interprocessing(lua to python python to lua)


lgrahl
  • lgrahl

    Player Hater

  • Members
  • Joined: 11 May 2015
  • Germany

#34

Posted 01 June 2015 - 03:08 PM

Or do you just want to merge both languages into a single ASI plugin?

 

thats it and allowing interprocessing(lua to python python to lua)

 

I agree that communication between these two languages would be an advantage. But, I believe this is something that would be really great for every kind of ASI plugin, not only for plugins that provide a wrapper to another language. And I don't believe that centralisation is the answer.

 

Therefore, I propose that we join efforts here and define an interface that allows communication between ASI plugins. This could be another plugin which just passes signals (messages) from a sender to a receiver, like Blinker. This would allow scripters to combine their scripts, communicate to each other, regardless of the language they chose.


lgrahl
  • lgrahl

    Player Hater

  • Members
  • Joined: 11 May 2015
  • Germany

#35

Posted 05 June 2015 - 09:46 PM

Alright guys, there have been a lot of changes in the last two days:

  • The two missing elements, the tick and the key event co-routines have been finally implemented
  • Higher level functions are available to avoid polling for common requirements (e.g. wait until the player ped exists)
  • The examples have been updated and new ones have been added to guide you on how to use these co-routines.
  • Reloading scripts is now done by pressing Ctrl+F12
  • Stopping scripts is now done by pressing Ctrl+Del

If you do start scripting, you will get to the point where you need to poll for a requirement (e.g. waiting until the player has a weapon or something). Please, add your poll function(s) into the gta.requires package and make a pull request with your changes, so the whole community benefits from it!

 

What does this mean? It means, we can release now!  :) I'll post an update as soon as I've uploaded the plugin.


lgrahl
  • lgrahl

    Player Hater

  • Members
  • Joined: 11 May 2015
  • Germany

#36

Posted 05 June 2015 - 10:11 PM Edited by lgrahl, 05 June 2015 - 10:14 PM.

Aaaand, there it is: https://github.com/l...kvpy3k/releases

 

I'll update the first posting after a few hours of sleep. ;)


lgrahl
  • lgrahl

    Player Hater

  • Members
  • Joined: 11 May 2015
  • Germany

#37

Posted 06 June 2015 - 06:57 PM

I've updated the first posting. We are grateful for any kind of feedback and hope to see some of your scripts soon. :)


lgrahl
  • lgrahl

    Player Hater

  • Members
  • Joined: 11 May 2015
  • Germany

#38

Posted 11 June 2015 - 03:30 PM Edited by lgrahl, 11 June 2015 - 03:30 PM.

Version 0.9.14 fixes a minor bug in the key event and has been updated to include the latest natives.
Reminder: Alex has just released a new Script Hook V version to support the "I'll Gotta Gains Update". Please, update your Script Hook V version if you haven't already.


Klaus_Kleber
  • Klaus_Kleber

    Player Hater

  • Members
  • Joined: 01 May 2015
  • Germany

#39

Posted 12 June 2015 - 08:36 PM

does this have an ingame reload function?


lgrahl
  • lgrahl

    Player Hater

  • Members
  • Joined: 11 May 2015
  • Germany

#40

Posted 12 June 2015 - 08:40 PM Edited by lgrahl, 12 June 2015 - 08:41 PM.

does this have an ingame reload function?

 
Yes, press Ctrl+F12 in game to reload all scripts or Ctrl+Del to just stop them.

lgrahl
  • lgrahl

    Player Hater

  • Members
  • Joined: 11 May 2015
  • Germany

#41

Posted 24 October 2015 - 03:58 PM Edited by lgrahl, 24 October 2015 - 04:00 PM.

I'm looking for someone who wants to continue the work on this project because I currently have no time to pursue it any further. If you are interested, please contact me via mail <[email protected]>. Cheers!


lgrahl
  • lgrahl

    Player Hater

  • Members
  • Joined: 11 May 2015
  • Germany

#42

Posted 08 November 2015 - 02:07 PM

Version 0.10.16 switches over to Python 3.5.0 and has been updated to include the latest natives. In addition, a UI module has been added which is in a very early state (but doesn't interfere with existing scripts, so no worries here).

 

I'm still desperately looking for contributers who want to continue the work on this project because I currently have very limited time. If you are interested, please make pull requests on the official GitHub project page or contact me via mail <[email protected]>. Cheers!


JGam3r
  • JGam3r

    Player Hater

  • New Members
  • Joined: 26 Jan 2016
  • Germany

#43

Posted 26 January 2016 - 06:30 PM

I already posted it in the comment section of the mod on GTA5-mods.com but I still have a problem while trying to get the mod to work like it should.

 

I want to create some mods for GTA using python but the Script Hook V Python 3k does not work. Native trainer and OpenIV work normal. I tried the wanted.py and vehicle_color.py to test if the mod works.
Can someone help me pls?

 

LOG(asi-loader):
// GTA V ASI LOADER (build May 2 2015)
// © Alexander Blade 2015
LIB: "C:\WINDOWS\system32\dinput8.dll" => 00007FFCCC430000
API: "DirectInput8Create" => 00007FFCCC43A570
API: "DllCanUnloadNow" => 00007FFCCC44BBA0
API: "DllGetClassObject" => 00007FFCCC44BC70
API: "DllRegisterServer" => 00007FFCCC4560A0
API: "DllUnregisterServer" => 00007FFCCC456430
LOADER: Loading *.asi plugins
ASI: Loading "D:\games\steam\steamapps\common\Grand Theft Auto V\NativeTrainer.asi"
"NativeTrainer.asi" => 00007FFCCE720000
ASI: Loading "D:\games\steam\steamapps\common\Grand Theft Auto V\OpenIV.asi"
"OpenIV.asi" => 00007FFCD4500000
ASI: Loading "D:\games\steam\steamapps\common\Grand Theft Auto V\scripthookvpy3k.asi"
"scripthookvpy3k.asi" failed to load
LOADER: Finished loading *.asi plugins

 

thx in advance

JGam3r

 


lgrahl
  • lgrahl

    Player Hater

  • Members
  • Joined: 11 May 2015
  • Germany

#44

Posted 27 January 2016 - 02:05 PM

I already posted it in the comment section of the mod on GTA5-mods.com but I still have a problem while trying to get the mod to work like it should.

 

I want to create some mods for GTA using python but the Script Hook V Python 3k does not work. Native trainer and OpenIV work normal. I tried the wanted.py and vehicle_color.py to test if the mod works.
Can someone help me pls?

 

LOG(asi-loader):
// GTA V ASI LOADER (build May 2 2015)
// © Alexander Blade 2015
LIB: "C:\WINDOWS\system32\dinput8.dll" => 00007FFCCC430000
API: "DirectInput8Create" => 00007FFCCC43A570
API: "DllCanUnloadNow" => 00007FFCCC44BBA0
API: "DllGetClassObject" => 00007FFCCC44BC70
API: "DllRegisterServer" => 00007FFCCC4560A0
API: "DllUnregisterServer" => 00007FFCCC456430
LOADER: Loading *.asi plugins
ASI: Loading "D:\games\steam\steamapps\common\Grand Theft Auto V\NativeTrainer.asi"
"NativeTrainer.asi" => 00007FFCCE720000
ASI: Loading "D:\games\steam\steamapps\common\Grand Theft Auto V\OpenIV.asi"
"OpenIV.asi" => 00007FFCD4500000
ASI: Loading "D:\games\steam\steamapps\common\Grand Theft Auto V\scripthookvpy3k.asi"
"scripthookvpy3k.asi" failed to load
LOADER: Finished loading *.asi plugins

 

thx in advance

JGam3r

 

 

Have you downloaded and installed Python 3 from the URL of the first posting? Have you built the Python Script Hook yourself or have you just downloaded the plugin? Also, any Python log files you could post here?


JGam3r
  • JGam3r

    Player Hater

  • New Members
  • Joined: 26 Jan 2016
  • Germany

#45

Posted 27 January 2016 - 05:28 PM

 

Have you downloaded and installed Python 3 from the URL of the first posting? Have you built the Python Script Hook yourself or have you just downloaded the plugin? Also, any Python log files you could post here?

 

Yes I installed python 3.5 from  the link you posted.

I just downloaded the finished plugin and the log files don't even exist... or do I need to create those manually?

 

best regards

JGam3r


lgrahl
  • lgrahl

    Player Hater

  • Members
  • Joined: 11 May 2015
  • Germany

#46

Posted 28 January 2016 - 01:03 PM

The log files will be created automatically. I will have a look at it soon.


lgrahl
  • lgrahl

    Player Hater

  • Members
  • Joined: 11 May 2015
  • Germany

#47

Posted 31 January 2016 - 12:26 PM

I've had a look at it and it works fine for me. Have you changed any settings during the Python 3 installation process?

 

I'll upload a new version soon.


JGam3r
  • JGam3r

    Player Hater

  • New Members
  • Joined: 26 Jan 2016
  • Germany

#48

Posted 31 January 2016 - 08:58 PM

Thx for the reply lGrahl

No I haven't changed any setting but I haven't got access to my computer till next week because I'm on vacation. I'll see if it helps reinstalling it when I am back home


JGam3r

dominikandreas
  • dominikandreas

    Player Hater

  • New Members
  • Joined: 2 weeks ago
  • Germany

#49

Posted 2 weeks ago

Unfortunately this project doesn't seem to work any longer, I suspect the reason is that both GTAV and ScriphookV have been updated. I tried to compile the solution myself with a newer version of scripthook, but unfortunately lots of functions can't be found.

 

Am I just doing something wrong or have there been really so many changes to the native api? Really appreciate your work and would love if you could help out somehow.


lgrahl
  • lgrahl

    Player Hater

  • Members
  • Joined: 11 May 2015
  • Germany

#50

Posted 2 weeks ago Edited by lgrahl, 2 weeks ago.

Yeah, I'd love to come back to this but I'm really busy and it's unlikely I will have time for this any time soon (with that I mean many months, if not years). The .NET script hook is just way more popular and I don't believe we can catch up with them in terms of utility functions, stability, etc. which would be a requirement for higher popularity. One has to understand that I need to work on other projects I can make a living out of.

 

In general, however, this project has demonstrated that scripts can run concurrently in Python without the complexity added by multi-threading (although it is of course still possible to do that when really needed). Hopefully, the more popular script hooks come back to this idea.

 

Edit: Oh, and of course the built-in dependency management. That is really, really neat! To other script hook devs: Copy that!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users