[QUOTE=imacc2009;44194248]how you be so successful.
My server got two players on its first day. :([/QUOTE]
If you are a smaller player base type server I recommend making friends with your players, it goes miles.
Was wondering if there could be a command for admin chat? Most preferably @ but anything works I guess.
Thanks :D
[QUOTE=afik068;44194438]Was wondering if there could be a command for admin chat? Most preferably @ but anything works I guess.
Thanks :D[/QUOTE]
I'll use my terrible coding skills and try to make this.
[QUOTE=Alig96;44194317]Hate to sound dumb, but how are the CharacterVars saved/loaded? How do I save my own data? When i was experimenting with it, it attempted to place the data into the database, but it didn't have the column, so I added the column and it saved, but it doesn't load? What do I have to edit to make them load when a character is loaded? Or am I missing something here?[/QUOTE]
Character variables are created in the CreateCharVars hook. The hook passes the character object, which contains the :NewVar(name, value, state, noSave)
If noSave is not set to true, then during the saving process, a query for saving that variable will be added. Since you probably have not modified the SQL tables, it will result in an error. If noSave is set to true, you will need to save it your own way, but if it is not saved it simply acts as a networked variable for the character. State refers to whether or not the variable is a CHAR_PUBLIC or CHAR_PRIVATE variable. Public means it is networked to everyone (e.g. the name) while private is not (e.g. money).
So, if you wanted to make your own custom variable in a plugin for example, you would add:
[lua]
function PLUGIN:CreateCharVars(character)
-- Create a new var called "test" that has the default value of 123 and is ONLY networked to the local player. It will also not save to the database.
character:NewVar("test", 123, CHAR_PRIVATE, true)
end
-- Later on, you can do something like:
player.GetByID(1).character:SetVar("test", 456)
-- You can get the variable with:
testValue = player.GetByID(1).character:GetVar("test")
[/lua]
If you want to save something, there is another method called :SetData(key, value) where it simply saves arbitrary data for you, [I]but is only networked to the local player[/I]. The usage is similar to :Set/GetVar()
Hope this helps!
[QUOTE=Chessnut;44195023]
If noSave is not set to true, then during the saving process, a query for saving that variable will be added.
[/QUOTE]
Well, that's why! It all works perfect now, a leveling & experience plugin that works right out of the box. Has someone already submitted an exp plugin? I would love to contribute if there isn't!
[QUOTE=afik068;44194286]We had a playerbase already, DF been around for 2 years. ARP revived today after 6 months.
pics:
[url]http://cloud-3.steampowered.com/ugc/794063002671746323/88E40E4CE4FA2FBCDB322D7AA60E69D98B257EEC/[/url]
[url]http://cloud-3.steampowered.com/ugc/794063002671742976/A56BD9B4AB3C049B482151692E19E901F2BA0064/[/url]
[url]http://cloud-2.steampowered.com/ugc/794063002671739683/51548637A836D8B9C7CD008B9A985FE453BD4B08/[/url]
[url]http://cloud-3.steampowered.com/ugc/794063002671736466/9575A11BEC6606B2953E9B82868171E08F3BA3B3/[/url]
[url]http://cloud-3.steampowered.com/ugc/794063002671733162/4510B5BD68D598EE53A36BEE1275CBB04C5CD97F/[/url]
[url]http://cloud-4.steampowered.com/ugc/794063002671749137/664712ED8648F69BC38AC892B1BF06BB23A3D298/[/url][/QUOTE]
Looks quite good and I'm glad to see its popular. What map are you using though because it looks very out of proportion and man, missing textures.
Well, I think I need to redo my plugins :|
[QUOTE=rebel1324;44195977]Well, I think I need to redo my plugins :|[/QUOTE]
Why?
[QUOTE=GTbrawlers;44195702]Looks quite good and I'm glad to see its popular. What map are you using though because it looks very out of proportion and man, missing textures.[/QUOTE]
rp_ineu_valley2_v1
The map is good, most people are having fun using it, It's just me and my shitty PC. Once I get my new GPU I'll fix all of my problems.
Note my FPS is low due to the GPU, People have not complained over lags or fps drops during the release. This actually runs much smoother than clockwork.
[QUOTE=afik068;44198522]rp_ineu_valley2_v1
The map is good, most people are having fun using it, It's just me and my shitty PC. Once I get my new GPU I'll fix all of my problems.
Note my FPS is low due to the GPU, People have not complained over lags or fps drops during the release. This actually runs much smoother than clockwork.[/QUOTE]
Still looks like a pretty good server. I'm definatley going to try it out.
NS definitely runs 10x smoother then clockwork. I used to get 10-15 fps on my old computer using clockwork but when the server switched to ns I got 30-40.
I think you need a new computer
How to add new models to the factions with different skins?
Is there any free way to host a NS server without having a public IP address? I know there are hosters and all that but I don't have any way to pay over internet nor do I have anything to pay with.
I know there is the Hamachi way, but talking with some of my mates they said it sucked and will suck.
[QUOTE=thefreemann;44202042]I think you need a new computer[/QUOTE]
the computer i was using at the time was p old but i have a new one now that runs around 500+ fps lol
[QUOTE=Netrius;44203449]Is there any free way to host a NS server without having a public IP address? I know there are hosters and all that but I don't have any way to pay over internet nor do I have anything to pay with.
I know there is the Hamachi way, but talking with some of my mates they said it sucked and will suck.[/QUOTE]
right now i'm using toxic servers and the host guy is letting me have an eight slot server for free, i'd check it out if i were you. his name on steam currently is AMM|Dynasty, and he hosts out of Chicago.
[QUOTE=Netrius;44203449]Is there any free way to host a NS server without having a public IP address? I know there are hosters and all that but I don't have any way to pay over internet nor do I have anything to pay with.
I know there is the Hamachi way, but talking with some of my mates they said it sucked and will suck.[/QUOTE]
There are a few hosts on facepunch that will do it for free but if you want a community you want more than 8 slots and you definitely want a paid service. They're cheap anyways if you look around and explore your options. 32 slots for £10 etc
Mh, as a lua beginner, how do i declare an item, like the combine lock (also that it opens when youre a combine) , it should open by CWU Members?
[QUOTE=Saxithon;44212783]Mh, as a lua beginner, how do i declare an item, like the combine lock (also that it opens when youre a combine) , it should open by CWU Members?[/QUOTE]
there's a lot of ways to go about that, it depends on how chessnut setup the combine locks.
[editline]12th March 2014[/editline]
[QUOTE=Chessnut;44195023]If you want to save something, there is another method called :SetData(key, value) where it simply saves arbitrary data for you, [I]but is only networked to the local player[/I]. The usage is similar to :Set/GetVar()
Hope this helps![/QUOTE]
is SetData() saved?
mh, well thats my other problem.
who's mh?
Mh means thinking.. u know?
[QUOTE=Saxithon;44213004]Mh means thinking.. u know?[/QUOTE]
it feels like your addressing someone
mhm, aha,... interesting.
[video=youtube;ODaHdbODTZU]http://www.youtube.com/watch?v=ODaHdbODTZU&noredirect=1[/video]
what a nerd
How the hell has that doctor got a diploma. Clockwork isn't a nut allergy cure.
"cake sucks"
yes that will earn you some good points with the rp community
[QUOTE=Blazer232;44215953]"cake sucks"
yes that will earn you some good points with the rp community[/QUOTE]
Especially with the aperturerp one lele
[QUOTE=imacc2009;44215355]How the hell has that doctor got a diploma. Clockwork isn't a nut allergy cure.[/QUOTE]
Are you sane
Another Lua noob nerd question: Where is the "main" IsCombine declared?, i'm going to make CWU Locks ._. :words:
Edit:
Halp please.:eng101:
[QUOTE=thefreemann;44215998]Are you sane[/QUOTE]
Maybe. I'm going to get checked.
[editline]12th March 2014[/editline]
[QUOTE=Saxithon;44216205]Another Lua noob nerd question: Where is the "main" IsCombine declared?, i'm going to make CWU Locks ._. :words:
Edit:
Halp please.:eng101:[/QUOTE]
Replace IsCombine to
[LUA]Team() == FACTION_CITIZEN[/LUA]
Change FACTION_CITIZEN to your CWU faction, obiously.
Sorry, you need to Log In to post a reply to this thread.