• Print

Author Topic: UPS - Ulysses Prop Share  (Read 547152 times)

0 Members and 1 Guest are viewing this topic.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: [BETA] UPS - Ulysses Prop Share
« Reply #120 on: July 04, 2008, 01:54:07 pm »
Any other errors around that? Just the one? What else was happening around this time?
Experiencing God's grace one day at a time.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: [BETA] UPS - Ulysses Prop Share
« Reply #121 on: July 04, 2008, 04:47:47 pm »
Another substantial SVN update:
Quote
Cleaned out some stuff from the ownership information that helped when we were using NWVars but was just mucking things up now.
Improved our new ownership update process.

This has the potential to create many new bugs so let us know if you find any!
Experiencing God's grace one day at a time.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: [BETA] UPS - Ulysses Prop Share
« Reply #122 on: July 05, 2008, 12:33:32 am »
Quote
Any other errors around that? Just the one? What else was happening around this time?

No, only thing I noticed was this error repeated several times.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Patrik

  • Newbie
  • *
  • Posts: 27
  • Karma: 0
Re: [BETA] UPS - Ulysses Prop Share
« Reply #123 on: July 06, 2008, 03:40:30 pm »
I also get the
Code: [Select]
[UPS ERROR] Ownership table is not setup for a ply in onEntRemoved! Could be a b
ad UPS addon installed or bad initialization?   Please report this error to ulys
sesmod.net with information on how you got it.
error now, and props some started being owned by map. Just reinstalled server so all addons I got is Wire SVN + Wire extras, PHX3 SVN, ULib + ULX + UPS.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: [BETA] UPS - Ulysses Prop Share
« Reply #124 on: July 06, 2008, 11:14:29 pm »
Lol, you have the same exact setup as me :D. Ironically same error.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: [BETA] UPS - Ulysses Prop Share
« Reply #125 on: July 08, 2008, 02:09:04 pm »
This is just a hunch, but with the "Ownership table is not setup..." error, did a player join soon before the error occured?
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: [BETA] UPS - Ulysses Prop Share
« Reply #126 on: July 09, 2008, 09:40:34 am »
Your version as oppose to its counterpart tried and tested version is extremely good in both ways but i propose altering it slightly so your version does both (allow me to elaborate).
On map start it checks all the objects on the map and owns them by the map, giving them the full run of the mill protection i.e. players can use only, then end this script and initiate another one that protects props spawned by the map minimalistic-ally i.e. Players can weld, tool e.t.c. but not remove, standard admin allowances of course apply to both scripts. Finally have a cleanup script directly related to props spawned after map start allowing admins to quickly cleanup any mingebags that decide they want to start spamming using map spawning entities especially as maps like wire construct exist. If this where to come through I would rate this system as a king of all current protectors.

I'm working on this implementation now (I know, only 2 months later :P) and here's what I have:

Code: Lua
  1. initialMapProtectionInfo = {
  2.         ["^func_breakable$"]               = { ACTID_DAMAGE, },
  3.         ["^func_breakable_surf$"]          = { ACTID_DAMAGE, },
  4.         ["^func_physbox$"]                 = { ACTID_DAMAGE, ACTID_FREEZE, ACTID_PHYSGUN, ACTID_TOOL, ACTID_UNFREEZE, },
  5.         ["^prop_physics"]                  = { ACTID_DAMAGE, ACTID_FREEZE, ACTID_PHYSGUN, ACTID_TOOL, ACTID_UNFREEZE, },        
  6.         ["^prop_ragdoll$"]                 = { ACTID_DAMAGE, ACTID_FREEZE, ACTID_PHYSGUN, ACTID_TOOL, ACTID_UNFREEZE, },
  7.         ["^prop_vehicle"]                  = { ACTID_DAMAGE, ACTID_FREEZE, ACTID_PHYSGUN, ACTID_TOOL, ACTID_UNFREEZE, },               
  8.         ["^item_ammo_"]                    = { ACTID_FREEZE, ACTID_PHYSGUN, ACTID_UNFREEZE, },  
  9.         ["^item_battery$"]                 = { ACTID_FREEZE, ACTID_PHYSGUN, ACTID_UNFREEZE, },  
  10.         ["^item_box_buckshot$"]            = { ACTID_FREEZE, ACTID_PHYSGUN, ACTID_UNFREEZE, },  
  11.         ["^item_healthkit$"]               = { ACTID_FREEZE, ACTID_PHYSGUN, ACTID_UNFREEZE, },  
  12.         ["^item_healthvial$"]              = { ACTID_FREEZE, ACTID_PHYSGUN, ACTID_UNFREEZE, },  
  13.         ["^item_item_crate$"]              = { ACTID_FREEZE, ACTID_PHYSGUN, ACTID_UNFREEZE, },  
  14.         ["^item_rpg_round$"]               = { ACTID_FREEZE, ACTID_PHYSGUN, ACTID_UNFREEZE, },  
  15. }
  16.  
  17. extendedMapProtectionInfo = {
  18.         ["^func_breakable$"]               = allIdsAndTake,
  19.         ["^func_physbox$"]                 = allIdsAndTake,
  20.         ["^prop_physics"]                  = allIdsAndTake,
  21.         ["^prop_ragdoll$"]                 = allIdsAndTake,
  22.         ["^prop_vehicle"]                  = allIdsAndTake,
  23.         ["^item_ammo_"]                    = allIdsAndTake,
  24.         ["^item_battery$"]                 = allIdsAndTake,
  25.         ["^item_box_buckshot$"]            = allIdsAndTake,
  26.         ["^item_healthkit$"]               = allIdsAndTake,
  27.         ["^item_healthvial$"]              = allIdsAndTake,
  28.         ["^item_item_crate$"]              = allIdsAndTake,
  29.         ["^item_rpg_round$"]               = allIdsAndTake,
  30. }  

First notice that the keys are regular expression strings. If you don't know what these are don't panic. Basically if you don't see the '$' at the end of the string, it means that it will match any entity that begins with that text. So "^prop_vehicle" will match "prop_vehicle_jeep" and so on.

Second, initialMapProtectionInfo is what's allowed on an ent that was created with the map where the other table is what's allowed on an ent that wasn't created by a player after the map initialization (IE, a vehicle from a spawner).

Third, allIdsAndTake will allow any action on the entity and will also give control of the entity over to the first person to take substantial action on it (IE physgun it).

Got all that? Now, are these permissions good defaults? :)

Remember that UPS is open source, any admin can change these settings at any time, and easily! It should be fairly easy to understand. Script authors can also inject their own information into these UPS tables.
Experiencing God's grace one day at a time.

Offline jay209015

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 934
  • Karma: 62
    • Dev-Solutions
Re: [BETA] UPS - Ulysses Prop Share
« Reply #127 on: July 09, 2008, 12:46:03 pm »
I found another possible bug with ups. When building a contraption that contains props from more then one player, you can't adv dupe it. It always says error saving the file.
An error only becomes a mistake when you refuse to correct it. --JFK

"And thus the downfall of the great ULX dynasty was wrought not by another dynasty, but the slow and steady deterioration of the leaders themselves, followed by the deprecation of the great knowledge they possessed." -Gmod, Chapter 28, verse 34 -- Stickly

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: [BETA] UPS - Ulysses Prop Share
« Reply #128 on: July 09, 2008, 04:21:32 pm »
I found another possible bug with ups. When building a contraption that contains props from more then one player, you can't adv dupe it. It always says error saving the file.

They need to give you access to dupe it. In this case, since it's a third party addon, they need to give you permission to move the props as well as delete them. All unrecognized tools are checked for move and delete permission.

In other news, I rolled out the map protection update. You can now remove stuff from spawners! Let me know how you guys like it.
« Last Edit: July 09, 2008, 04:26:16 pm by Megiddo »
Experiencing God's grace one day at a time.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: [BETA] UPS - Ulysses Prop Share
« Reply #129 on: July 11, 2008, 07:10:11 am »
Any more feature requests or bug reports? I'd like to get a release out the door soon. :)
Experiencing God's grace one day at a time.

Offline m0nday

  • Newbie
  • *
  • Posts: 1
  • Karma: 1
Re: [BETA] UPS - Ulysses Prop Share
« Reply #130 on: July 12, 2008, 07:13:07 am »
Hi !

Maybe one (or two) more requests  ;D

A new tab with options to deactivate different protections (use / damage / etc.... ) for everyone.

This may have been asked already, I've no read the whole thread x)

And maybe a new button "Clear disconnected clients props", so we don't have to wait for autoremove. (I used rather often this button with SPP.)

Otherwise, this new prop secure is perfect  :D


[Yay, first post :D ]

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: [BETA] UPS - Ulysses Prop Share
« Reply #131 on: July 12, 2008, 11:55:39 am »
Latest commit fixes a couple bugs you guys have been after me about. :P

Quote
Fixed a bug where players would be unable to reclaim props after ownership was cleared on leave.
Fixed a bug with the friends list not properly loading from saved state.
Fixed a bug where prop ownership would not be cleared.
Clearing/deleting props will no longer take place if the player didn't own anything in the first place.
If an admin clears a disconnected player's props it will now immediately remove that player's information instead of waiting for the normal deletion routing.

And maybe a new button "Clear disconnected clients props", so we don't have to wait for autoremove. (I used rather often this button with SPP.)

That feature was already there but bugged out. Should be fixed with this new commit.

A new tab with options to deactivate different protections (use / damage / etc.... ) for everyone.

Sure, I'll see if I can't work it in.
Experiencing God's grace one day at a time.

Offline Chief_runningwater

  • Newbie
  • *
  • Posts: 14
  • Karma: 2
  • Fpsbanana User
    • Chiefrunningwater.com
Re: [BETA] UPS - Ulysses Prop Share
« Reply #132 on: July 13, 2008, 05:47:29 pm »
When and how do I download this for my server?....

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: [BETA] UPS - Ulysses Prop Share
« Reply #133 on: July 13, 2008, 07:52:53 pm »
When and how do I download this for my server?....

UPS is in closed beta right now, we're not looking for new beta testers. You'll have to wait until release. :)
Experiencing God's grace one day at a time.

Offline Chief_runningwater

  • Newbie
  • *
  • Posts: 14
  • Karma: 2
  • Fpsbanana User
    • Chiefrunningwater.com
Re: [BETA] UPS - Ulysses Prop Share
« Reply #134 on: July 13, 2008, 08:19:20 pm »
UPS is in closed beta right now, we're not looking for new beta testers. You'll have to wait until release. :)
Thanks thats all I wanted to know, also this will be like a replacement for simple prop protection its an add-on like that right?...

  • Print