AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Module Coding (https://forums.alliedmods.net/forumdisplay.php?f=9)
-   -   Module: Okapi (https://forums.alliedmods.net/showthread.php?t=234986)

joaquimandrade 02-10-2014 02:15

Re: Module: Okapi
 
The reason I decided not to use configuration files is that changing an sma and compiling is very easy and actually makes it faster for someone to: notice that a plugin was updated, updating by replacing files (you just have one file to update), see signatures that are being used in a plugin just by looking at a sma.

But what Arkshine said about centralizing signatures makes sense. And it can be added to okapi without changing it's way of working just like an extra feature. I may make it one day. :twisted:

Emp, it's just the animal name :twisted:

Anyone already have tried to work with treemaps?

Arkshine 02-10-2014 07:56

Re: Module: Okapi
 
Quote:

Anyone already have tried to work with treemaps?
http://endangeredliving.files.wordpr...pg?w=523&h=391

joropito 02-17-2014 09:30

Re: Module: Okapi
 
Quote:

Originally Posted by joaquimandrade (Post 2098196)
The reason I decided not to use configuration files is that changing an sma and compiling is very easy and actually makes it faster for someone to: notice that a plugin was updated, updating by replacing files (you just have one file to update), see signatures that are being used in a plugin just by looking at a sma.

The problem with that is you can't recompile every plugin published at each mod update.

Quote:

Originally Posted by joaquimandrade (Post 2098196)
But what Arkshine said about centralizing signatures makes sense. And it can be added to okapi without changing it's way of working just like an extra feature. I may make it one day.

Go ahead :)



Win / Linux / OSX cross treemaps compatibility should be awesome (I know, it's impossible but...)

meTaLiCroSS 03-31-2014 17:50

Re: Module: Okapi
 
1 Attachment(s)
Anyone knows about this error? (if traduction needed, tell me)

Arkshine 03-31-2014 18:56

Re: Module: Okapi
 
You can put the translation, but I think it says basically it doesn't found such function in Kernel32.dll, right ?

Do you have win XP or 2003 ?

meTaLiCroSS 03-31-2014 19:04

Re: Module: Okapi
 
Quote:

Originally Posted by Arkshine (Post 2118572)
You can put the translation, but I think it says basically it doesn't found such function in Kernel32.dll, right ?

Do you have win XP or 2003 ?

Right, and I have XP :crab: I should format this cr*p..

Arkshine 03-31-2014 19:19

Re: Module: Okapi
 
1 Attachment(s)
What about this.

meTaLiCroSS 03-31-2014 20:00

Re: Module: Okapi
 
Quote:

Originally Posted by Arkshine (Post 2118583)
What about this.

Works like a charm :crab: thanks you! What was the problem?

Arkshine 03-31-2014 20:52

Re: Module: Okapi
 
In s_library.cpp, where it uses GetModuleInformation, I've added :

#pragma comment(lib, "Psapi.lib")
#pragma comment(lib, "Kernel32.lib")

#define PSAPI_VERSION 1

So, it will use Psapi.lib instead. With windows 7, some changes have been done around this function and to keep compatibility with XP, you need to laod Psapi and define PSAPI version to 1.

meTaLiCroSS 03-31-2014 21:42

Re: Module: Okapi
 
Quote:

Originally Posted by Arkshine (Post 2118610)
In s_library.cpp, where it uses GetModuleInformation, I've added :

#pragma comment(lib, "Psapi.lib")
#pragma comment(lib, "Kernel32.lib")

#define PSAPI_VERSION 1

So, it will use Psapi.lib instead. With windows 7, some changes have been done around this function and to keep compatibility with XP, you need to laod Psapi and define PSAPI version to 1.

What a god, thanks buddy :3


All times are GMT -4. The time now is 08:09.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.