Recent Posts

Pages: [1] 2 3 ... 10
1
Developers Corner / DELETE THREAD
« Last post by /WG\John on Today at 08:21:00 AM »
Please delete thread
2
Off-Topic / Re: Owner rank can move player spawned world props(permaprops)
« Last post by JamminR on May 24, 2017, 07:15:34 PM »
Just to make sure you're clear, this has nothing to do with ULX in and of itself.
Perhaps the update caused a group membership to be seen differently with one of your admin mods or prop protection, but, ULX has absolutely no direct access to prop ownership.
https://forums.ulyssesmod.net/index.php/topic,9873.0.html
3
This topic has been moved to Off-Topic.
https://forums.ulyssesmod.net/index.php?topic=10373.0

Moving - Not a ULX issue. It's something to do with your group setup, Fadmin, or FPP, as described and answered many times in our FAQ - https://forums.ulyssesmod.net/index.php/topic,9873.0.html
(We don't mind helping, but this doesn't belong in Team Ulysses related project support area)
4
Off-Topic / Re: Owner rank can move player spawned world props(permaprops)
« Last post by saya on May 24, 2017, 09:21:14 AM »
if u want u can join my server and watch
5
Off-Topic / Re: Owner rank can move player spawned world props(permaprops)
« Last post by saya on May 24, 2017, 09:17:55 AM »
In FPP its almost disabled and the rank is called "Community-Leiter"
6
Developers Corner / Re: Assigning numeric value to non-sequential table
« Last post by iViscosity on May 24, 2017, 08:07:36 AM »
Ok... so I tried doing this:
Code: [Select]
{
    "default": {
        "name": "Default",
        "access": "user",
        "temp": false
    }
}
and that seems to work out better. I've never had to use JSON directly before so this is new for me :P
7
Off-Topic / Re: Owner rank can move player spawned world props(permaprops)
« Last post by captain1342 on May 24, 2017, 06:34:29 AM »
First: Owner owner or Superadmin Owner?
Second: Falcos Prop Protection has an option in the physgun protection tab "Admins can physgun world props" change that to prevent/allow admins to physgum world props.

I hope that helped you ( Its hard to get what you mean )
8
Off-Topic / Owner rank can move player spawned world props(permaprops)
« Last post by saya on May 24, 2017, 04:28:01 AM »
Hey guys, since i updated to ulx 3.71 the owner rank can move player spawned(permapropped) world props, i use as prop "system" falcos prop protectio and fadmin is enabled i saw few posts about this but didnt find a solution for this
9
Developers Corner / Re: Assigning numeric value to non-sequential table
« Last post by Megiddo on May 23, 2017, 03:45:04 PM »
The following snippet of JSON:

Code: Text
  1. "default": [
  2.          {
  3.             "name": "Default",
  4.             "access": "user",
  5.             "temp": false
  6.          }
  7.       ],

This converts to an array of objects, and you only have one item in the array. This is why it looks a little strange on the other side. [...] --> array. {...} --> dictionary.
10
Developers Corner / Assigning numeric value to non-sequential table
« Last post by iViscosity on May 23, 2017, 08:14:57 AM »
So I have this strong of JSON:
Code: Text
  1.  
  2. {
  3.       "default": [
  4.          {
  5.             "name": "Default",
  6.             "access": "user",
  7.             "temp": false
  8.          }
  9.       ],
  10.       "en": [
  11.          {
  12.             "name": "English",
  13.             "access": "user",  
  14.             "temp": false
  15.          }
  16.       ],
  17.       "dead": [
  18.          {
  19.             "name": "Dead",
  20.             "access": "user",
  21.             "temp": false
  22.          }
  23.       ],
  24.       "es": [
  25.          {
  26.             "name": "EspaƱol",
  27.             "access": "user",
  28.             "temp": false
  29.          }
  30.       ],
  31.       "admin": [
  32.          {
  33.             "name": "Admins",
  34.             "access": "operator",
  35.             "temp": false
  36.          }
  37.       ]
  38.    }
  39.  
Which I then have converted into a table using util.JSONToTable. I don't have the ability to test it right now (I can in a few hours but not at the moment -- I'll edit this if I can test before someone responds), but how does this _exactly_ work in this case. On the wiki page, it says
Quote
WARNING   
This function converts keys to numbers whenever possible
How would this affect my table? I need to access these tables like "SCC.Channels[ "default" ]" or something like that, but if the command assigns numeric keys, I could access it like "SCC.Channels[ 1 ].name" or something.


Like I said I can test this myself in a couple hours but I can't right now (at school). Is there anyone who knows this for sure?




EDIT: Ran it myself:
Code: [Select]
lua_run tab = util.JSONToTable( '{ "default": [ { "name": "Default", "access": "user", "temp": false } ], "en": [ { "name": "English", "access": "user",   "temp": false } ] }') PrintTable( tab )and this is the output:
Code: [Select]
default:
1:
access   =   user
name   =   Default
temp   =   false
en:
1:
access   =   user
name   =   English
temp   =   false
But I'm having a bit of trouble understanding it, what is the "1:" doing under the "en:" and "default:"? Does that mean it would need to be SCC.Channels[ "default" ][ 1 ].name?
From what I understand, table structure would look like this:
Code: Lua
  1. SCC.Channels = {
  2.     "default" = {
  3.         [1] = {
  4.             "access" = "user",
  5.             "name" = "Default",
  6.             "temp" = false
  7.         }
  8.     }
  9. }
  10.  
Am I correct?


I've never used this tool before so if someone could help me understand, that'd be appreciated.


EDIT2: Now that I think about it, I could use "ULib.parseKeyValues" and "ULib.makeKeyValues" as my addon does (for now, at least) rely on ULib. But I'd still like to understand this as I do want it to be standalone.
Pages: [1] 2 3 ... 10