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

[EXTENSION] SMJansson 2.3.1/3 (2012-05-07)


Post New Thread Reply   
 
Thread Tools Display Modes
Azerja12
Senior Member
Join Date: Feb 2013
Location: EU
Old 03-19-2015 , 05:12   Re: [EXTENSION] SMJansson 2.3.1/3 (2012-05-07)
Reply With Quote #51

I am not able to get this extension to work. I've tryed all the config commands and made an empty autoload file.
I also don't know where to put the other files. Beeing the other zip file. Not the binaries. I don't know if i even need them. I've been told i don't.
I want it to work for the store plugin.
__________________

Last edited by Azerja12; 03-19-2015 at 05:19.
Azerja12 is offline
versatile_bfg
Veteran Member
Join Date: Feb 2012
Old 03-19-2015 , 19:23   Re: [EXTENSION] SMJansson 2.3.1/3 (2012-05-07)
Reply With Quote #52

Quote:
Originally Posted by Azerja12 View Post
I am not able to get this extension to work. I've tryed all the config commands and made an empty autoload file.
I also don't know where to put the other files. Beeing the other zip file. Not the binaries. I don't know if i even need them. I've been told i don't.
I want it to work for the store plugin.
These ones are working on both windows and linux servers.

https://forums.alliedmods.net/showpo...4&postcount=35

I did have to create a autoload file as I don't have a plugin that uses this extension.

smjansson.autoload

You only need the binaries. Test that, if that doesnt work then report back with what error you are getting and what OS the server is on.
__________________
versatile_bfg is offline
WickstonAlmighty
Junior Member
Join Date: Nov 2015
Old 11-26-2015 , 16:04   Re: [EXTENSION] SMJansson 2.3.1/3 (2012-05-07)
Reply With Quote #53

Still having problems loading SMJannson.

Not sure what 'file "smjannson.ext.dll" : The specified module could not be found' means.

sm exts list shows the following:

[SM] Displaying 11 extensions:
[01] Automatic Updater (1.7.3-dev+5275): Updates SourceMod gamedata files
[02] Webternet (1.7.3-dev+5275): Extension for interacting with URLs
[03] <FAILED> file "smjannson.ext.dll": The specified module could not be found.
[04] TF2 Tools (1.7.3-dev+5275): TF2 extended functionality
[05] BinTools (1.7.3-dev+5275): Low-level C/C++ Calling API
[06] SDK Hooks (1.7.3-dev+5275): Source SDK Hooks
[07] SDK Tools (1.7.3-dev+5275): Source SDK Tools
[08] Top Menus (1.7.3-dev+5275): Creates sorted nested menus
[09] Regex (1.7.3-dev+5275): Provides regex natives for plugins
[10] Client Preferences (1.7.3-dev+5275): Saves client preference settings
[11] SQLite (1.7.3-dev+5275): SQLite Driver

I have smjannson.ext.dll file in my /addons/sourcemod/extensions folder. I've also created the blank smjannson.autoload file and placed in same folder.

Can anyone please provide help? Thanks.

Last edited by WickstonAlmighty; 11-26-2015 at 19:40.
WickstonAlmighty is offline
ThefatDaddy
Junior Member
Join Date: Nov 2015
Old 12-22-2015 , 05:11   Re: [EXTENSION] SMJansson 2.3.1/3 (2012-05-07)
Reply With Quote #54

I may be way oversimplifying this but when I checked the sm exts list results I got

Code:
[SM] Displaying 13 extensions:
         [01] Automatic Updater (1.7.3-dev+5280): Updates SourceMod gamedata files
         [02] Webternet (1.7.3-dev+5280): Extension for interacting with URLs
         [03] SMJansson (2.6.0/1): JSON parser/writer
         [04] <FAILED> file "smjannson.ext.so": /home/insurg/insurg27026/insurgency/addons/sourcemod/extensions/smjannson.ext.so: cannot open shared object file: No such file or directory
         [05] Top Menus (1.7.3-dev+5280): Creates sorted nested menus
         [06] Client Preferences (1.7.3-dev+5280): Saves client preference settings
         [07] SQLite (1.7.3-dev+5280): SQLite Driver
         [08] SDK Tools (1.7.3-dev+5280): Source SDK Tools
         [09] BinTools (1.7.3-dev+5280): Low-level C/C++ Calling API
         [10] Regex (1.7.3-dev+5280): Provides regex natives for plugins
         [11] SDK Hooks (1.7.3-dev+5280): Source SDK Hooks
         [12] GeoIP (1.7.3-dev+5280): Geographical IP information
         [13] MySQL-DBI (1.7.3-dev+5280): MySQL driver implementation for DBI
So I changed the spelling of the file to match what is being called for from smjansson.ext.so to smjannson.ext.so and everything worked. I also have the original file [smjansson.ext.so] in my /extensions directory.

Code:
[SM] Displaying 12 extensions:
         [01] Automatic Updater (1.7.3-dev+5280): Updates SourceMod gamedata files
         [02] Webternet (1.7.3-dev+5280): Extension for interacting with URLs
         [03] Top Menus (1.7.3-dev+5280): Creates sorted nested menus
         [04] Client Preferences (1.7.3-dev+5280): Saves client preference settings
         [05] SQLite (1.7.3-dev+5280): SQLite Driver
         [06] SDK Tools (1.7.3-dev+5280): Source SDK Tools
         [07] BinTools (1.7.3-dev+5280): Low-level C/C++ Calling API
         [08] Regex (1.7.3-dev+5280): Provides regex natives for plugins
         [09] SDK Hooks (1.7.3-dev+5280): Source SDK Hooks
         [10] SMJansson (2.6.0/1): JSON parser/writer
         [11] GeoIP (1.7.3-dev+5280): Geographical IP information
         [12] MySQL-DBI (1.7.3-dev+5280): MySQL driver implementation for DBI

Last edited by ThefatDaddy; 12-22-2015 at 06:17. Reason: clarification
ThefatDaddy is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 12-24-2015 , 05:12   Re: [EXTENSION] SMJansson 2.3.1/3 (2012-05-07)
Reply With Quote #55

The spelling in the include file in the repo is correct, the problem is in whatever plugin you have requiring it.
__________________
asherkin is offline
dildoughy
Member
Join Date: Nov 2015
Old 04-07-2016 , 18:04   Re: [EXTENSION] SMJansson 2.3.1/3 (2012-05-07)
Reply With Quote #56

I have no idea what I'm supposed to do with the pawn and sdk folders included in the 2.3.1.3 .zip release, or where .cpp and .h files are supposed to go (I've never seen them before).
dildoughy is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 04-07-2016 , 18:40   Re: [EXTENSION] SMJansson 2.3.1/3 (2012-05-07)
Reply With Quote #57

That's the source code, you want the other attachment.
__________________
asherkin is offline
Dudunik
New Member
Join Date: Apr 2016
Old 04-26-2016 , 14:47   Re: [EXTENSION] SMJansson 2.3.1/3 (2012-05-07)
Reply With Quote #58

Hi,

I have a problem with use smjannson extension.

I compiled plugin with this extension and all is ok (without any problems) but when i start server and check what plugins are loaded then i see <Failed> in my compiled plugin and after run command "sm plugins refresh" i see a error
Native "json_array_append_new" was not found.

How I can fix this problem? I used version of smjansson.inc from first post (https://raw.github.com/thraaawn/SMJa.../smjansson.inc).
Dudunik is offline
Legendoniance
Junior Member
Join Date: Oct 2013
Old 05-07-2016 , 12:38   Re: [EXTENSION] SMJansson 2.3.1/3 (2012-05-07)
Reply With Quote #59

Hi can I check if there is a mac version for it? Can someone come up with one please?
Legendoniance is offline
switz213
Junior Member
Join Date: Jun 2015
Old 05-11-2016 , 00:59   Re: [EXTENSION] SMJansson 2.3.1/3 (2012-05-07)
Reply With Quote #60

Can I get an array from a json object via json_object_get? If I want to append/create an array beneath a json object, would this code work?

PHP Code:
        Handle jsonObj json_object();
        
Handle jsonArr json_object_get(g_globalJSONObj"hi");

        
// if array doesn't exist, create it
        
if (jsonArr == INVALID_HANDLE) {
            
jsonArr json_array();
        }

        
json_object_set_new(jsonObj"foo"json_integer(1));

        
json_array_append_new(jsonArrjsonObj);

        
json_object_set(g_globalJSONObj"hi"jsonArr);
    } 
Should json_object_set be json_object_set_new or would that close the handle on the existing jsonArr?

What I hope to happen in data:
Code:
{}
{ "hi": [] }
{ "hi": [{"foo": 1}] }

Last edited by switz213; 05-12-2016 at 00:07.
switz213 is offline
Reply



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 16:10.


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