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

[Paid job] Remove store attr limit (json, smjansson)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Groger
Veteran Member
Join Date: Oct 2009
Location: Belgium
Old 12-05-2013 , 14:56   [Paid job] Remove store attr limit (json, smjansson)
Reply With Quote #1

Hi, someone willing to debug a problem we have?

Store equipment currently doesn't allow more than x amount of characters to be saved/read, we tried increasing it and have had succes
(we have been able to increase the max read characters) but somehow there is still a limit on the saving.
Once we increase it to much we get an error (Not enough space on the heap)

Store equipment uses smjansson, maybe this is the problem?

The person who can fix this gets 50€


Example of what happens when we save it if it passed the max amount of characters: (notice the last line where it suddenly cuts off)

PHP Code:
{
    
"model""models/player/dimension/hats/inktvis/heavy_bill.mdl",
    
"angles": [
        
0.0,
        
0.0,
        
0.0
    
],
    
"position": [
        
0.0,
        
0.0,
        
2.4000000953674316
    
],
    
"attachment""forward",
    
"playermodels": [
        {
            
"playermodel""models/player/slow/hitler/hitler.mdl",
            
"angles": [
                
0.0,
                
105.0,
                
100.0
            
],
            
"position": [
                
1.5,
                
0.0,
                -
4.5900001525878906
            
]
        },
        {
            
"playermodel""models/player/dimension/t/jigsaw/jigsaw.mdl",
            
"angles": [
                
94.5,
                -
85.5,
                
0.0
            
],
            
"position": [
                -
7.5,
                -
1.0,
                -
0.10000000149011612
            
]
        },
        {
            
"playermodel""models/player/supremeelite/jailbreakv2/monk/monk.mdl",
            
"angles": [
                -
10.5,
                
87.0,
                
103.5
            
],
            
"position": [
                -
1.0,
                
1.0,
                -
0.60000002384185791
            
]
        },
        {
            
"playermodel""models/player/ranger1/predaaator.mdl",
            
"angles": [
                
10.0,
                
85.0,
                
75.0
            
],
            
"position": [
                -
2.0,
                -
1.0,
                -
3.0899999141693115
            
]
        },
        {
            
"playermodel""models/player/slow/rorschach/slow_v2.mdl",
            
"angles": [
                
1.5,
                
95.0,
                
96.0
            
],
            
"position": [
                -
3.5,
                
0.5,
                -
3.5899999141693115
            
]
        },
        {
            
"playermodel""models/player/elis/fsv2/fischer.mdl",
            
"angles": [
                
0.0,
                
89.0,
                
99.0
            
],
            
"position": [
                -
1.5,
                
0.0,
                -
4.5999999046325684
            
]
        },
        {
            
"playermodel""models/player/ranger4/predaaator.mdl",
            
"angles": [
                -
2.0,
                
92.0,
                
92.0
            
],
            
"position": [
                -
3.0,
                
0.5,
                -
2.0899999141693115
            
]
        },
        {
            
"playermodel""models/player/slow/jamis/kingpin/slow_v2.mdl",
            
"angles": [
                
3.0,
                
93.0,
                
92.0
            
],
            
"position": [
                -
5.0,
                -
0.5,
                -
2.0899999141693115
            
]
        },
        {
            
"playermodel""models/pil/zoeys/original_v2/zoey_pil.mdl",
            
"angles": [
                
4.0,
                
87.0,
                
67.5
            
],
            
"position": [
                -
3.0,
                -
0.5,
                -
2.5899999141693115
            
]
        },
        {
            
"playermodel""models/player/techknow/tf2/spy/spy_red.mdl",
            
"angles": [
                
3.0,
                
92.5,
                
83.0
            
],
            
"position": [
                
1.5,
                
0.0,
                -
4.5900001525878906
            
]
        },
        {
            
"playermodel""models/player/dimension/t/pedobear/pbear.mdl",
            
"angles": [
                
95.0,
                
5.0,
                
80.0
            
],
            
"position": [
                -
20.5,
                -
0.5,
                
0.38999998569488525
            
]
        },
        {
            
"playermodel""models/player/slow/aot/murray/slow.mdl",
            
"angles": [
                
0.0,
                
80.0,
                
75.0
            
],
            
"position": [
                -
4.5,
                -
1.5,
                -
3.5999999046325684
            
]
        },
        {
            
"playermodel""models/player/dimension/t/loki_mech/slow.mdl",
            
"angles": [
                -
0.5,
                
84.5,
                
78.5
            
],
            
"position": [
                
2.0,
                
0.0,
                -
3.0899999141693115
            
]
        },
        {
            
"playermodel""models/player/vad36soldier_morphs/morphs.mdl",
            
"angles": [
                
5.0,
                
113.5,
                
74.0
            
],
            
"position": [
                -
1.0,
                
0.0,
                -
2.0899999141693115
            
]
        },
        {
            
"playermodel""models/player/slow/jamis/mkvsdcu/joker/slow_pub.mdl",
            
"angles": [
                
0.5,
                
86.0,
                
97.0
            
],
            
"position": [
                -
1.5,
                
0.0,
                -
6.0900001525878906
            
]
        },
        {
            
"playermodel""models/player/techknow/goofy/goofy.mdl",
            
"angles": [
                -
10.0,
                
70.0,
                
55.0
            
],
            
"position": [
                -
16.5,
                -
1.0,
                -
0.5899999737739563
            
]
        },
        {
            
"playermodel""models/player/techknow/tf2/sniper/sniper_red.mdl",
            
"angles": [
                -
5.0,
                
70.0,
                
85.0
            
],
            
"position": [
                -
3.0,
                -
1.0,
                -
5.0900001525878906
            
]
        },
        {
            
"playermodel""models/player/dimension/ct/nazi_officer/nazi_officer.mdl",
            
"angles": [
                
100.0,
                
15.0,
                
80.0
            
],
            
"position": [
                -
2.5,
                -
1.5,
                
2.4000000953674316
            
]
        },
        {
            
"playermodel""models/player/dimension/t/terrorist/csgo_t_arctic.mdl",
            
"angles": [
                
100.0,
                
15.0,
                
80.0
            
],
            
"position": [
                -
2.5,
                -
1.5,
                
2.4000000953674316
            
]
        },
        {
            
"playermodel""models/player/slow/aot/tyson/slow.mdl",
            
"angles": [
                
1.0,
                
80.0,
                
87.0
            
],
            
"position": [
                -
3.5,
                
0.0,
                -
2.5999999046325684
            
]
        },
        {
            
"playermodel""models/player/dimension/ct/fbi/ct_gign.mdl",
            
"angles": [
                
95.0,
                -
65.0,
                
20.0
            
],
            
"position": [
                -
4.0,
                -
0.5,
                
0.40000000596046448
            
]
        },
        {
            
"playermodel""models/player/dimension/ct/female_ct/ct_gsg9.mdl",
            
"angles": [
                
1.0,
                
84.0,
                
78.0
            
],
            
"position": [
                -
2.0,
                -
0.5,
                -
5.5900001525878906
            
]
        },
        {
            
"playermodel""models/player/knifelemon/bighead/t_phoenix.mdl",
            
"angles": [
                -
4.5,
                
94.0,
                
90.0
            
],
            
"position": [
                -
16.0,
                
1.0,
                -
3.5999999046325684
            
]
        },
        {
            
"playermodel""models/player/knifelemon/bighead/ct_sas.mdl",
            
"angles": [
                
16.0,
                
94.0,
                
90.0
            
],
            
"position": [
                
1.5,
                -
2.5,
                
2.8900001049041748
            
]
        },
        {
            
"playermodel""models/player/supremeelite/jailgirls/jill/jill.mdl",
            
"angles": [
                -
3.0,
                
95.0,
                
75.0
            
],
            
"position": [
                
0.0,
                
0.5,
                -
4.0900001525878906
            
]
        },
        {
            
"playermodel""models/player/slow/banana_joe/slow.mdl",
            
"angles": [
                
5.0,
                
95.0,
                
80.5
            
],
            
"position": [
                
0.0,
                
0.0,
                -
1.5900000333786011
            
]
        },
        {
            
"playermodel""models/player/slow/fallout_3/alien/slow.mdl",
            
"angles": [
                
0.0,
                
91.0,
                
112.5
            
],
            
"position": [
                -
9.0,
                
0.0,
                
0.40000000596046448
            
]
        },
        {
            
"playermodel""models/player/dimension/ct/member/ct_urban.mdl",
            
"angles": [
                
0.0,
                
100.0,
                
100.0
            
],
            
"position": [
                -
2.0,
                
0.0,
                -
2.5899999141693115
            
]
        },
        {
            
"playermodel""models/player/vad36cod_mw3/london_cop.mdl",
            
"angles": [
                
0.0,
                
100.0,
                
100.0
            
],
            
"position": [
                -
2.0,
                
0.0,
                -
2.5899999141693115
            
]
        },
        {
            
"playermodel""models/player/elis/po/police.mdl",
            
"angles": [
                
0.0,
                
100.0,
                
100.0
            
],
            
"position": [
                -
2.0,
                
0.0,
                -
2.5899999141693115
            
]
        },
        {
            
"playermodel""models/player/dimension/ct/polizei/ct_gsg9.mdl",
            
"angles": [
                
95.0,
                -
105.0,
                -
20.0
            
],
            
"position": [
                -
5.0,
                
0.0,
                -
1.0900000333786011
            
]
        },
        {
            
"playermodel""models/player/dimension/t/terrorist4/csgo_t_phoenix.mdl",
            
"angles": [
                
90.0,
                -
80.0,
                -
10.0
            
],
            
"position": [
                -
3.5,
                
0.5,
                -
0.090000003576278687
            
]
        },
        {
            
"playermodel""models/player/dimension/t/terrorist3/csgo_t_guerilla.mdl",
            
"angles": [
                
90.0,
                -
80.0,
                -
10.0
            
],
            
"position": [
                -
3.5,
                
0.5,
                -
0.090000003576278687
            
]
        },
        {
            
"playermodel""models/player/dimension/t/terrorist2/csgo_t_leet.mdl",
            
"angles": [
                
90.0,
                -
80.0,
                -
10.0
            
],
            
"position": [
                -
3.5,
                
0.5,
                -
0.090000003576278687
            
]
        },
        {
            
"playermodel""models/player/dimension/t/terrorist/csgo_t_arctic.mdl",
            
"angles": [
                
90.0,
                -
80.0,
                -
10.0
            
],
            
"position": [
                -
3.5,
                
0.5,
                -
0.090000003576278687
            
]
        },
        {
            
"playermodel""models/player/tiera/fsb/ct_urban.mdl",
            
"angles": [
                
0.0,
                
0.0,
                
0.0
            
],
            
"position": [
                
0.0,
                
0.0,
                
2.4000000953674316
            
]
        },
        {
            
"playermodel""models/player/jailbait/t_phoenix/t_phoenix.mdl",
            
"angles": [
                
0.0,
                
0.0,
                
0.0
            
],
            
"position": [
                
0.0,
                
0.0,
                
17.389999389648437
            
]
        },
        {
            
"playermodel""models/player/techknow/prison/leet_p.mdl",
            
"angles": [
                
0.0,
                
0.0,
                
0.0
            
],
            
"position": [
                
0.0,
                -
5.0,
                
2.4000000953674316
            
]
        },
        {
            
"playermodel""models/player/t_arctic.mdl",
            
"angles": [
                
0.0,
                
0.0,
                
0.0
            
],
            
"position": [
                
0.0,
                
0.0,
                
12.390000343322754
            
]
        },
        {
            
"playermodel""models/player/t_phoenix.mdl",
            
"angles": [
                
0.0,
                
0.0,
                
0.0
            
],
            
"position": [
                
0.0,
                
0.0,
                
3.9000000953674316
            
]
        },
        {
            
"playermodel""models/player/t_leet.mdl",
            
"angles": [
                
0.0,
                
0.0,
                
0.0
            
],
            
"position": [
                
0.0,
                
0.0,
                
17.389999389648437
            
]
        },
        {
            
"playermodel""models/player/vad36crysis3/hazmatsuit.mdl",
            
"angles": [
                
0.0,
                
0.0,
                
0.0
            
],
            
"position": [
                
0.0,
                
0.5,
                -
7.5900001525878906
            
]
        },
        {
            
"playermodel""models/player/rocknrolla/ct_urban.mdl",
            
"angles": [
                
0.0,
                
100.0,
                
100.0
            
],
            
"position": [
                -
2.0,
                
0.0,
                -
2.5899999141693115
            
]
        },
        {
            
"playermodel""models/player/dimension/ct/member/ct_urban.mdl",
            
"angles": [
                
0.0,
                
100.0,
                
100.0
            
],
            
"position": [
                -
2.0,
                
0.0,
                -
2.5899999141693115
            
]
        },
        {
            
"playermodel""models/player/elis/po/police.mdl",
            
"angles": [
         } 

Last edited by Groger; 12-05-2013 at 15:13.
Groger is offline
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Old 12-08-2013 , 09:03   Re: [Paid job] Remove store attr limit (json, smjansson)
Reply With Quote #2

A temporary solution would be to compress the JSON. Use http://jsonformatter.curiousconcept.com/, In JSON Template select Compact.
__________________

Last edited by alongub; 12-08-2013 at 09:05.
alongub is offline
Groger
Veteran Member
Join Date: Oct 2009
Location: Belgium
Old 12-08-2013 , 13:11   Re: [Paid job] Remove store attr limit (json, smjansson)
Reply With Quote #3

Follow up:
https://github.com/berni2288/store/t...reasedattrsize
https://github.com/berni2288/store-e...reasedattrsize

Its not elegant as you need to compile it using a special command, But it fixed our issue.

@alonghub, We did that yeah its build in into store webpanel.
We do have another issue with Engine error: ED_Alloc: no free edicts (and than crashes). If we disable equipments we don't have that error. Is this something you think is possible?

Last edited by Groger; 12-08-2013 at 13:25.
Groger 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 17:37.


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