Raised This Month: $12 Target: $400
 3% 

Module: Okapi


Post New Thread Reply   
 
Thread Tools Display Modes
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 02-10-2014 , 02:15   Re: Module: Okapi
Reply With Quote #21

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.

Emp, it's just the animal name

Anyone already have tried to work with treemaps?
__________________

Last edited by joaquimandrade; 02-10-2014 at 02:15.
joaquimandrade is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-10-2014 , 07:56   Re: Module: Okapi
Reply With Quote #22

Quote:
Anyone already have tried to work with treemaps?
__________________

Last edited by Arkshine; 02-11-2014 at 10:24.
Arkshine is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 02-17-2014 , 09:30   Re: Module: Okapi
Reply With Quote #23

Quote:
Originally Posted by joaquimandrade View Post
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 View Post
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...)
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 03-31-2014 , 17:50   Re: Module: Okapi
Reply With Quote #24

Anyone knows about this error? (if traduction needed, tell me)
Attached Thumbnails
Click image for larger version

Name:	okapifail.PNG
Views:	517
Size:	25.9 KB
ID:	132193  
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-31-2014 , 18:56   Re: Module: Okapi
Reply With Quote #25

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 ?
__________________
Arkshine is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 03-31-2014 , 19:04   Re: Module: Okapi
Reply With Quote #26

Quote:
Originally Posted by Arkshine View Post
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 I should format this cr*p..
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-31-2014 , 19:19   Re: Module: Okapi
Reply With Quote #27

What about this.
Attached Files
File Type: dll okapi_amxx.dll (171.5 KB, 251 views)
__________________
Arkshine is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 03-31-2014 , 20:00   Re: Module: Okapi
Reply With Quote #28

Quote:
Originally Posted by Arkshine View Post
What about this.
Works like a charm thanks you! What was the problem?
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-31-2014 , 20:52   Re: Module: Okapi
Reply With Quote #29

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.
__________________
Arkshine is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 03-31-2014 , 21:42   Re: Module: Okapi
Reply With Quote #30

Quote:
Originally Posted by Arkshine View Post
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
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:17.


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