Comments (32)
Could you at least use Markdown blocks to format your code? It looks ugly and hard to read.
Something like this:
void Test() { return; }
from plugin-sdk.
Hello Kewun0!
Your issue sounds similar to #23
Solution was to find "plugin.sln" and compile in Debug configuration, for you I think plugin_sa.
If it does not solve your problem, could you elaborate further?
from plugin-sdk.
Already fixed, but now getting other shitton load of errors. unresolved symbols, etc
example :
from plugin-sdk.
In plugin-sdk you have to include headers that you need.
https://github.com/DK22Pac/plugin-sdk/blob/master/plugin_III/game_III/CPlayerPed.h
Try doing: #include "game_III/CPlayerPed.h"
Important: create Peds using "new" operator (never on stack!)
from plugin-sdk.
errors
Severity Code Description Project File Line Suppression State
Error LNK2038 mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MTd_StaticDebug' in Main.obj Project1 C:\Users\Dom\Documents\Visual Studio 2017\Projects\Project1\Project1\plugin_III.lib(CEntity.obj) 1
Error LNK2038 mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in Main.obj Project1 C:\Users\Dom\Documents\Visual Studio 2017\Projects\Project1\Project1\plugin_III.lib(CEntity.obj) 1
Error LNK2038 mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in Main.obj Project1 C:\Users\Dom\Documents\Visual Studio 2017\Projects\Project1\Project1\plugin_III.lib(CMatrix.obj) 1
Error LNK2038 mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MTd_StaticDebug' in Main.obj Project1 C:\Users\Dom\Documents\Visual Studio 2017\Projects\Project1\Project1\plugin_III.lib(CMatrix.obj) 1
Error LNK2038 mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in Main.obj Project1 C:\Users\Dom\Documents\Visual Studio 2017\Projects\Project1\Project1\plugin_III.lib(CPhysical.obj) 1
Error LNK2038 mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MTd_StaticDebug' in Main.obj Project1 C:\Users\Dom\Documents\Visual Studio 2017\Projects\Project1\Project1\plugin_III.lib(CPhysical.obj) 1
Error LNK2038 mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in Main.obj Project1 C:\Users\Dom\Documents\Visual Studio 2017\Projects\Project1\Project1\plugin_III.lib(CPlaceable.obj) 1
Error LNK2038 mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MTd_StaticDebug' in Main.obj Project1 C:\Users\Dom\Documents\Visual Studio 2017\Projects\Project1\Project1\plugin_III.lib(CPlaceable.obj) 1
Error LNK2038 mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in Main.obj Project1 C:\Users\Dom\Documents\Visual Studio 2017\Projects\Project1\Project1\plugin_III.lib(CPlayerPed.obj) 1
Error LNK2038 mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MTd_StaticDebug' in Main.obj Project1 C:\Users\Dom\Documents\Visual Studio 2017\Projects\Project1\Project1\plugin_III.lib(CPlayerPed.obj) 1
Error LNK1319 10 mismatches detected Project1 D:\Grand Theft Auto III\plugins\Project1_d.asi 1
from plugin-sdk.
#include` "plugin_III.h"
#include "game_III/CPlayerPed.h"
using namespace plugin;
class MyPlugin {
public:
MyPlugin() {
if (KeyPressed(VK_SHIFT))
{
CPlayerPed Player;
Player.Remove();
}
}
} myPlugin;
from plugin-sdk.
Btw, have you tried using the plugin-sdk project wizard inside the "tools" folder? It is very useful, because you get many templates in Visual Studio :)
To fix your problem please change the runtime library setting in your project, like
from plugin-sdk.
i used the wizard, also the settings are same as in your screenshot.
from plugin-sdk.
Sorry for the inconvenience! There is a small bug in the wizard. Please change this setting:
from plugin-sdk.
same errors...
from plugin-sdk.
Are you sure? Please post the complete error log again. I would like to take a look at it.
from plugin-sdk.
from plugin-sdk.
Your log says it uses "plugin_III.lib". Are you sure you changed library to "plugin_III_d.lib"?
from plugin-sdk.
from plugin-sdk.
Please try changing the Configuration to Debug and try again
We understand that using Visual Studio for the first time can be difficult :)
from plugin-sdk.
Now i get only the error as in title, missing plugin_iii_d.lib
Severity Code Description Project File Line Suppression State
Error LNK1104 cannot open file 'plugin_III_d.lib' Project1 C:\Users\Dom\Documents\Visual Studio 2017\Projects\Project1\Project1\LINK 1
from plugin-sdk.
Open plugin.sln and build the "plugin_III" project in Debug mode.
Has the issue been fixed? :-)
We are glad to help you.
from plugin-sdk.
Done, and changed, now when i try build
https://pastebin.com/ZHr5QCA0
from plugin-sdk.
I have several questions to you.
- you seem to have a plugin-sdk lib here: C:\Users\Dom\Documents\Visual Studio 2017\Projects\Project1\Project1\plugin_III_d.lib
This is not the default plugin-sdk folder, yes? Have you updated this file with the correct version? This does not look like a wizard-created project. - Have you changed back the "plugin_III_d.lib" in Release configuration to "plugin_III.lib"?
from plugin-sdk.
- yes, updated, and is wizard created project
- no
from plugin-sdk.
- then please try :)
from plugin-sdk.
Same errors
from plugin-sdk.
I have assigned DK22Pac to this issue. I hope this issue with project-wiazard will be fixed. I suggest you wait till he is here ;-)
Or you carefully check that you changed everything properly, again.
from plugin-sdk.
Please follow these steps:
- Download or update your plugin-sdk folder with latest changes.
- Open
plugin-sdk\plugin.sln
and build solution in Release and Debug modes. - Close Visual Studio
- Go to
Documents\Visual Studio 2017\Templates\ProjectTemplates
and deletePlugin-SDK
folder there. - Open Command Prompt for VS2017 and run this command:
devenv /installvstemplates
- Open
plugin-sdk\tools\plugin-sdk-project-wizard\plugin-sdk-project-wizard.exe
, setup it and pressGenerate
- Open Command Prompt for VS2017 and run this command:
devenv /installvstemplates
- Open Visual Studio and create a new project.
from plugin-sdk.
everything done, still this annoying error plugin_iii.lib cant open
But when i compile on release mode, no errors, but the plugin does not work i press F6 and nothing happens CODE: https://pastebin.com/8n5WF1SW
from plugin-sdk.
It looks like Visual Studio still loads old templates from cache.
And about your code, it is not correct.
You should add everything you want to do with peds/vehicles into gameProcessEvent, for example:
#include "plugin_III.h"
#include "game_III\common.h"
using namespace plugin;
class MyPlugin {
public:
MyPlugin() {
Events::gameProcessEvent += [] {
CPed *playa = FindPlayerPed();
if (playa && KeyPressed(VK_F6)) {
playa->m_fHealth += 1.0f;
}
};
}
} myPlugin;
And also, developing of plugin-sdk for GTA III is just started, so there's not much you can do with it at this moment.
from plugin-sdk.
This needs documentation ;/
from plugin-sdk.
after your solution
http://imgur.com/a/zxISg
from plugin-sdk.
..
from plugin-sdk.
fixed every error, but
#include "plugin_III.h"
#include "game_III\common.h"
using namespace plugin;
class MyPlugin {
public:
MyPlugin() {
Events::gameProcessEvent += [] {
CPed *playa = FindPlayerPed();
if (playa && KeyPressed(VK_F6)) {
playa->m_fHealth += 1.0f;
}
};
}
} myPlugin;
doesnt work, i press F6, and i dont get +1 health
from plugin-sdk.
Now i know why, this doesnt work on gta 3 1.1 ...
from plugin-sdk.
We support only exe 1.0 version.
from plugin-sdk.
Related Issues (20)
- tColLighting is wrong
- Error while compiling script (C3861 'M_PI': identifier not found) [Visual Studio 2019] HOT 3
- Error while building HOT 1
- injector::MakeInline modifies the EFLAGS register HOT 1
- Can't build plugin.sln (C2760 Error) [Visual Studio 2019 Community]
- Crash when calling CPlaceable::GetAtDirection()
- Build errors caused by C/C++ preprocessor definitions HOT 1
- Is this error caused because a d3dx9 sdk installation is missing? HOT 2
- Plugin-SDK adaptable for GTA SA mobile version. HOT 1
- VSIX installer error in Visual Studio HOT 3
- GetD3DDevice not work correct
- Compilation error. Visual Studio 2019 HOT 4
- Linux crosscompilation: error due to includes with different casing than the file HOT 2
- GPS example broken due to missing type on GetD3DDevice template function HOT 1
- WN 11 ?? HOT 2
- Error in plugin gen HOT 5
- Recent error while trying to clone HOT 1
- Modifying shadow colors.
- CRoadBlocks::aScriptRoadBlocks address collision HOT 1
- About UE4 GTA game sdk
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugin-sdk.