Thread: Handleing client sided object spawning as an external loaded file or class

Results 1 to 9 of 9
  1. #1 Handleing client sided object spawning as an external loaded file or class 
    Registered Member
    Join Date
    Oct 2016
    Posts
    87
    Thanks given
    51
    Thanks received
    34
    Rep Power
    45
    Really been looking at ways to create a command that spawns objects in using RUSE, more specifically a NECROTIC build. I have wrote a command that spawns a object (object for this thread ==bank chest) so the command works. bank chest spawns, I logout it stays, I switch regions it stays, its clipped and it works, but the moment the server restarts the bank chest is gone. The custom objects and objects removed are handled client sided as far as I can tell. Would there be a way to call the spawns from an external file? It happens all the time with json and such, but the file is store locally externally. I'm talking super externally. like from my website or something. Just looking for ideas. Thanks guys.
    Reply With Quote  
     

  2. #2  
    Trusted Member

    Join Date
    Jun 2019
    Posts
    48
    Thanks given
    3
    Thanks received
    9
    Rep Power
    36
    a command that adds a object fully, first of all doesnt ruse require you to have like globalobjects.java in client and server side same file with the exact same id and coords for both, if you was creating a command you would realistcally need it create one for both, if you want an object in your game i think i just explained it.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Oct 2016
    Posts
    87
    Thanks given
    51
    Thanks received
    34
    Rep Power
    45
    the command works like it was spawned in client side. How would I have my off site server write to clients that are already out. that's the problem i'm running in to.
    .
    Reply With Quote  
     

  4. #4  
    Registered Member
    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,186
    Thanks given
    483
    Thanks received
    1,049
    Rep Power
    1505
    add it to the actual map file..
    ...
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Oct 2016
    Posts
    87
    Thanks given
    51
    Thanks received
    34
    Rep Power
    45
    Quote Originally Posted by mige5 View Post
    add it to the actual map file..
    And what do you mean. You need to explain yourself please. I am trying to start a discussion thread that my help other people as well.
    Reply With Quote  
     

  6. #6  
    Be the change you wanna see!
    Nozemi's Avatar
    Join Date
    Jul 2010
    Posts
    254
    Thanks given
    60
    Thanks received
    57
    Rep Power
    40
    Quote Originally Posted by Jrage View Post
    And what do you mean. You need to explain yourself please. I am trying to start a discussion thread that my help other people as well.
    Mige5's reply should help everyone who views this thread. To put it simpler; edit the actual maps, and add the objects you need in the map.

    The way you're currently doing it, you need to store the objects that the server should load somewhere. Right now it just registers a new object and stores it in the memory, so the next time the server boots, it has no idea.
    Idk what Ruse is like, but most servers have like objects.json or whatever. You need to add the object spawn to that as well.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Oct 2016
    Posts
    87
    Thanks given
    51
    Thanks received
    34
    Rep Power
    45
    The object spawn side of it is handled in client "CUstomeObjects.java" and the clipping is handled server sided "CustomeObjects.java" in order for the object to normally function 100 % it has to be placed under both. With the command I wrote, it spawns and is clipped. Now I have to find a way for that command to save and be loaded. The command needs to have access for a high tier donator. Currently I have them saving in a log and updating the clients daily, but its a lot of work. If I was just adding object for the game world, I would do it in the maps, or not even worry about a command, but since its for donator content, I gotta find a way to make save and load server sided, or from an external source, just kinda thought i'd see what kind of thoughts I could get from the community. I do like how the threads going though people. Very engaging!

    Quote Originally Posted by Nozemi View Post
    Mige5's reply should help everyone who views this thread. To put it simpler; edit the actual maps, and add the objects you need in the map.

    The way you're currently doing it, you need to store the objects that the server should load somewhere. Right now it just registers a new object and stores it in the memory, so the next time the server boots, it has no idea.
    Idk what Ruse is like, but most servers have like objects.json or whatever. You need to add the object spawn to that as well.
    Forgot to quote haha
    Reply With Quote  
     

  8. #8  
    Be the change you wanna see!
    Nozemi's Avatar
    Join Date
    Jul 2010
    Posts
    254
    Thanks given
    60
    Thanks received
    57
    Rep Power
    40
    Quote Originally Posted by Jrage View Post
    The object spawn side of it is handled in client "CUstomeObjects.java" and the clipping is handled server sided "CustomeObjects.java" in order for the object to normally function 100 % it has to be placed under both. With the command I wrote, it spawns and is clipped. Now I have to find a way for that command to save and be loaded. The command needs to have access for a high tier donator. Currently I have them saving in a log and updating the clients daily, but its a lot of work. If I was just adding object for the game world, I would do it in the maps, or not even worry about a command, but since its for donator content, I gotta find a way to make save and load server sided, or from an external source, just kinda thought i'd see what kind of thoughts I could get from the community. I do like how the threads going though people. Very engaging!



    Forgot to quote haha
    I don't really get what exactly you're trying to do. Why would donators need to spawn objects?

    Either way, you need to store these objects somewhere, as I said earlier. So the server can load them when it restarts. No matter how objects are added, that has to happen. The exact same thing that command does, has to happen on server load as well. Shouldn't be hard really.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Oct 2016
    Posts
    87
    Thanks given
    51
    Thanks received
    34
    Rep Power
    45
    Quote Originally Posted by Nozemi View Post
    I don't really get what exactly you're trying to do. Why would donators need to spawn objects?

    Either way, you need to store these objects somewhere, as I said earlier. So the server can load them when it restarts. No matter how objects are added, that has to happen. The exact same thing that command does, has to happen on server load as well. Shouldn't be hard really.
    Its for my up coming "MOZ" Member Owned Zones. I have a custom item, it stacks and is going to be used as the currency for said zones, and than each of the available objects will require said item and some materials, similar to construction. Why haven't I thought of this before I was typing this up. Look and see how construction handles the object spawning and saving. I think I may have answered my question. Very nice thank you everyone!
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Client-Side Object Spawning
    By Galkon in forum Snippets
    Replies: 32
    Last Post: 05-03-2016, 07:57 PM
  2. Client sided object spawning
    By sircarl3 in forum Buying
    Replies: 0
    Last Post: 07-12-2012, 07:43 PM
  3. Client sided object spawning
    By sircarl3 in forum Help
    Replies: 9
    Last Post: 07-12-2012, 05:43 PM
  4. [525] Client Sided Object Spawning
    By Jake1 in forum Help
    Replies: 0
    Last Post: 03-05-2012, 07:46 PM
  5. client side object spawning
    By yuki953 in forum Requests
    Replies: 3
    Last Post: 07-18-2010, 05:57 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •