Page 1 of 2
user_scripts on server manager [discussion]
Posted: Fri Oct 23, 2009 10:49 pm
by myers73
Does anyone know if a server using server manager to run will run user scripts if put in the correct folder?
Re: user_scripts
Posted: Sat Oct 24, 2009 5:32 am
by Aman/Pinguin
As long as the servermanager uses the 1.3 patch, yes.
Re: user_scripts on server manager [Solved]
Posted: Sun Oct 25, 2009 4:36 pm
by myers73
how would you make sure that black bag ops uses 1.3, do i need to add in some files?
Re: user_scripts on server manager
Posted: Sun Oct 25, 2009 6:06 pm
by Aman/Pinguin
Yes, just copy your common.lvl, ingame.lvl and shell.lvl from your game to your servermanager folder.
(Of course you need to have 1.3 installed for your game first.)
Re: user_scripts on server manager [SOLVED]
Posted: Sun Oct 25, 2009 7:22 pm
by myers73
k, great, thanks a lot.
so if i run a user_script_# in the server then all users in the server will experiences this, as in a lock vehicle command?
Re: user_scripts on server manager [SOLVED]
Posted: Sun Oct 25, 2009 9:42 pm
by [RDH]Zerted
Sort of. The code will never run on a the users' machines. It is an important distinction that doesn't really matter to most people...
However, whatever the server says goes. If the server says you didn't enter that vehicle then you didn't enter that vehicle. The lock command will work fine.
Re: user_scripts on server manager [SOLVED]
Posted: Sun Oct 25, 2009 10:45 pm
by myers73
thanks, so i suppose the lower health i was working on a while back will also, and other stuff like that?
Re: user_scripts on server manager [SOLVED]
Posted: Mon Oct 26, 2009 10:19 am
by [RDH]Zerted
Yeah, most things will work.
Re: user_scripts on server manager [SOLVED]
Posted: Mon Oct 26, 2009 9:43 pm
by myers73
Great, thanks a lot.
a related side note: {_Halls_Of_The_Jedi_Order_} server will be hosting some of the scripts i make if anyone wants to experience them online! So far we have only locked vehicles, but in teh future we will reduce health, and maybe do snipers only! And Zerted is credited for v1.3 and aman/penguin is credited for explaining how to install it on a server.
Re: user_scripts on server manager [SOLVED]
Posted: Mon Oct 26, 2009 10:29 pm
by Fiodis
Isn't "lock vehicles" already a FC command?
Re: user_scripts on server manager [SOLVED]
Posted: Mon Oct 26, 2009 11:22 pm
by [RDH]Zerted
It is, but myers73 is making a dedicated server side mod/script. With dedicated servers, no one is able to enter the FakeConsole menu to run commands so it has to be done through custom user scripts. Also, server side mods don't require the connecting users to download anything.
Re: user_scripts on server manager [SOLVED]
Posted: Tue Oct 27, 2009 8:55 am
by FragMe!
Sort of related to the dedicated server wins part of this discussion, also found out, that the server map (when run on blackops version not sure about the ingame DS) also decides what happens even if it is changed from what people who join have.
Case in point, on a certain map (remains nameless to protect the innocent or guilty) went in and hexed edited one of the command posts and changed it to team 0 from team 1. The original had one team starting with 2 cps and the other just one so I wanted to see if I could make them both have just one. It worked, if the map is running on the server it is one cp for each team but if I run the map in instant action it runs normally with the 2 to 1 advantage.
Not sure if this was already known or not but I thought I'd relate it anyway.
Re: user_scripts on server manager [SOLVED]
Posted: Tue Oct 27, 2009 4:04 pm
by myers73
^^this opens up some possibilities...so essentially I could load new objects and more command post...or more likely to happen remove certain objects. Also, would loading custom sides work, or no? Also, i believe changing the heroes would work.
Re: user_scripts on server manager [discussion]
Posted: Tue Oct 27, 2009 5:18 pm
by Aman/Pinguin
No, you are very limited when using serverscripts. Loading new stuff will either crash the players or they won't see the changes at all.
Re: user_scripts on server manager [discussion]
Posted: Tue Oct 27, 2009 7:31 pm
by myers73
But i could say, add wampas to each team on every map? and is there a way to check what era is playing, and if a certain one is do something?
EDIT:
[RDH]Zerted wrote:It is, but myers73 is making a dedicated server side mod/script. With dedicated servers, no one is able to enter the FakeConsole menu to run commands so it has to be done through custom user scripts. Also, server side mods don't require the connecting users to download anything.
just saw this, missed it before.
Re: user_scripts on server manager [discussion]
Posted: Tue Oct 27, 2009 8:22 pm
by FragMe!
I am not sure how much you can do with this, this is not scripting as such it was hexediting the .lvl file. So changing cp ownership for the start of the game and other minor variable (with map creators permission of course) Thing that I think would be good to try would be to try and change the extra unit bleed on death star conquest see if it makes a difference and the Rebels can win once in a while on line

Re: user_scripts on server manager [discussion]
Posted: Tue Oct 27, 2009 10:09 pm
by myers73
Zerted, is there any special way a custom side should be made to work on a server? Or just copy the .lvl from a map folder in my addon folder. like i could copy the bfx (just an example) sides into the servers files and have a script load them? (with the authors permission of course)
Re: user_scripts on server manager [discussion]
Posted: Wed Oct 28, 2009 12:11 am
by [RDH]Zerted
Yes, no way. The clients won't have the new side data so its useless to try to load them. You can change unit class properties, but you couldn't add in new skins not already loaded by the map. If you distributed the script to the clients then it could work, but then it's just a standard mod.
Anything that uses ReadDataFile, assuming its not reading in a script file, won't work. The clients don't run the server injected code so they won't read that data file. The server will send the client something it doesn't understand and the client will crash.
If a Wampa is already loaded in a mission, then you can have the server add it to another team. Doing this would allow you to force spawn players as Wampas on the other team. However, client's don't run this code so they don't know that the player is allowed to spawn as a Wampa. The clients won't see the Wampa on their unit selection screens (so the server has to force spawn them).
You can normally get the era and game mode of currently playing map (it's possible it won't work on some maps, but I've never seen it not work). See the v1.3 docs on how to do it.
See the FakeConsole commands for things you can do in a custom user script. Anything in there (plus a bit more) that doesn't cause crashes can be done server side without requiring the client to download anything.
You could remove or disable just about anything.
Re: user_scripts on server manager [discussion]
Posted: Wed Oct 28, 2009 12:23 am
by myers73
thanks, that actually makes a lot of sense now that i think about it. any chance of you knowing the code to remove the
remove the HUD like free cam does
edit:
also, would using the points LUA work in a user_script?
Re: user_scripts on server manager [discussion]
Posted: Wed Oct 28, 2009 6:24 pm
by [RDH]Zerted
Sure, you can change the point values if you want. Think of the user scripts as being inserted as the first line of the map's ScriptPostLoad() function.