Guad / GTACoop

An online co-op modification for GTA5
GNU General Public License v3.0
81 stars 71 forks source link

Trying Side Scripting #88

Open excelsi0r opened 7 years ago

excelsi0r commented 7 years ago

Hello.

I am attempting to create a simple FilterScript to run at startup allongside the Server. But I am having a problem when I load the Server. It says:

Can't start server: Could not load file or assembly 'ScriptHookVDotNet.dll' or one of its dependencies. The specified module could not be found.

Is there Some sort of impossibilty to create filterscripts using the ScriptHookVDotNet.dll library/dependency?

BTW excellent work so far developing this outstanding project. Best Regards and thank you for your suport.

Bluscream commented 7 years ago

You need to reference the library in Visual Studio: image

excelsi0r commented 7 years ago

That is what i thought first. And it didnt work. The final .dll file has scripthookvdotnet referenced but still gives the error. Does the GTAServer.exe also needs to have that reference in order for its filterscripts to use?

Bluscream commented 7 years ago

image

excelsi0r commented 7 years ago

I explored the project a bit and i think I will manage. Just one more question when i am using the SendNativeCallToPlayer what do I need to do to save the returned information if that native call returns information?

Bluscream commented 7 years ago

@excelsi0r https://gitter.im/crosire/scripthookvdotnet

excelsi0r commented 7 years ago

It is pratically impossible regarding the architecture of the mod. But thanks anyway xD

excelsi0r commented 7 years ago

I am currently trying to World Design using scripting. But I am strugling with Rotations. Do you have any idea on how to Edit a map and share it in a Gta Server in Gta Coop with myself being the hoster of the server?

If you don't know, just tell me as soon as you can so I can embark a new project! Thank you

un3xxx commented 7 years ago

same problem, and have no clue how to fix it. :(

excelsi0r commented 7 years ago

I don't think there is a way to fix it. I studied all the code of GTACoop, both server and client, scripthookV scripthookVdotnet and Map editor and I don't believe it is possible regarding the architecture of the mod. It is something that the developer should have accounted for in the begining of development. I also heard that the original developer steped down on this one and is creating a new one from scratch, lets just hope he remembers this kind of details when coding. Until then we just wait and hope for the best.

un3xxx commented 7 years ago

thanks excelsi0r for the answer. you might know why my lspdfr crash when i start it in coop.? cuz the coop mod work fine whitout any script. i check youtube and peaple playing that mod together. :/ lspdfr crash

excelsi0r commented 7 years ago

Sorry un3xxx can't help you that. I have no idea how that that LSPD mod is projected :/

Bluscream commented 7 years ago

@un3xxx Use https://discord.gg/0v9TP1BOmfwZms7y or http://forums.ragepluginhook.net/default.aspx?g=topics&f=12&name=Technical%20Issues

un3xxx commented 7 years ago

thanks. =)