Author Topic: [M] Native compatible Admin Tools. V1.0  (Read 65073 times)

0 Members and 1 Guest are viewing this topic.

Vincenzo

  • External Developer
  • *
  • Coder of code
    • View Profile
    • Flying Squirrel Entertainment
  • Faction: Neutral
  • MP nick: FSE_Vincenzo
  • M&BWBWF&SNW
[M] Native compatible Admin Tools. V1.0
« on: October 12, 2010, 04:12:36 PM »
Hey there great community.

I Present to you;
Native compatible Admin Tools By Vincenzo.

Features:

Automatic scripts:
  • Auto kick and ban for teamkillers
  • Automatic killing of stray horses after 30 seconds
  • Option to auto swap teams at battle at half time or siege after each round.
  • Automatic announcements; Editable to your own liking.
  • Server stats for on your website. (players, map etc)
  • Improved performance of a lot of native scripts to make the server faster.
  • When you get teamkilled you will loose no gold and can spawn with the same equipment.
  • When you get teamkilled you won't loose a life as a siege defender.
  • When you win a duel in duel mode you and your horse get full health.

Admin Management Tools:
  • Improved player select list; Sorted on score.
  • Admin Chat; Press the U button to chat in [SERVER] messages
  • Freeze Player
  • Slay Player
  • Temporary ban player (1 hour)
  • Swap player to other team
  • Swap player to spectators
  • Reset map (resets everything in the map and starts a new round without people having to reload the map)
  • When someone starts a poll, It is displayed who started it.
  • Mute all option; Like the native mute.(only for your client not for all)
  • All admin commands are fully logged in the log; who did them and when.

Admin Toys
  • Spawn Admin Gun; Simple kills people from range
  • Spawn Admin Sword; Big range, big damage.
  • Spawn Admin Shield; Has a lot of hit points and force field.
  • Spawn Ban Hammer; Upon killing someone with it the player gets banned for 1 hour.
  • Spawn Fire Arrows; When shot at something the place it hits will burn briefly
  • Spawn Fire Bolts; When shot at something the place it hits will burn briefly
  • Spawn Hand Grenade; When you throw it and it hits within a radius of 5 meters of a player or horse it dies in horrible pain.
  • Spawn Admin Horse; A fast horse with a lot of hit points!
  • Spawn with Admin Armor; Next spawn you will have the black armor and you almost can't be killed.
  • Heal Player
  • Refill Player Ammo
  • Give Player 10,000 Denar
  • Teleport to Player
  • Bring player to your position
  • Teleport through wall; Teleport 2.5 meters forward thus going through any wall or object in front of you.

note: All admin toy usage is logged and broadcasted to all players on the server, so you can't abuse it during matches or such.

All player specific commands can be executed for all players, for instance Freeze All  :mrgreen:


Screenshots:
(click to show/hide)

Installation

For server:
Download this:
http://22nd.eu/Vincenzo_Admin_Tools_Server_V1.0.zip
Backup your native .txt files, Then unzip it into your native folder.
Make sure to restart your server after.

For your admins:
Download and install this:
http://22nd.eu/Vincenzo_Admin_Tools_V1.0.exe



Extra info

Using Server Stats
Once your server is up you can view it's stats with this:
http://22nd.eu/stats/displaystats.php?server=YourServerNameHere

To put it on your website;
Add a iframe to your website for instance:
Code: [Select]
<iframe src ="http://22nd.eu/stats/displaystats.php?server=YourServerNameHere" width="100%" height="70" SCROLLING="no" frameborder="0">
</iframe>

If you want to use the stats in your own website style;
Just open up this css file and edit it to your liking, then save it on your webserver.:
http://22nd.eu/stats/styles.css

When you call my page you can link your own CSS file like so:
http://22nd.eu/stats/displaystats.php?server=YourServerName&css=http://yoursite/yourcssfile.css



Adding your own custom maps
To get your own maps in, you need to do 3 things;

1. Put your .sco file in
- Get the .sco file of your custom map and name it like:
scn_multi_scene_custom_1.sco
scn_multi_scene_custom_2.sco

and so on. You can have up to 20 custom maps.

- Put it in the "SceneObj" Folder on your server.


2. Put the codes in.
If you edit a native map then you need to copy its codes.
- Open up the file "scenes.txt" on your server with notepad.
- Search with notepad (Control + F) for:  "scn_multi_scene_custom_1"

You will get a result like:
Code: [Select]
scn_multi_scene_custom_1 multi_scene_custom_1 256 none none 0.000000 0.000000 100.000000 100.000000 -100.000000 0x00000001300389800003a4ea000058340000637a0000399b
  0
  0
 outer_terrain_plain
Now just copy over the codes from your custom map to this one, make sure you don't overwrite scn_multi_scene_custom_1 or multi_scene_custom_1 Because they are the identifiers for this map.

A example how Field by the River Looks:
Code: [Select]
scn_multi_scene_7 multi_scene_7 256 none none 0.000000 0.000000 100.000000 100.000000 -100.000000 0x0000000130010e0e0005fd84000011c60000285b00005cbe
  0
  0
 outer_terrain_plain
So just copy over all text except the names.

which results into:
Code: [Select]
scn_multi_scene_custom_1 multi_scene_custom_1 256 none none 0.000000 0.000000 100.000000 100.000000 -100.000000 0x0000000130010e0e0005fd84000011c60000285b00005cbe
  0
  0
 outer_terrain_plain


3. Rename the map.
You can rename your custom map from the default.
- For this open up strings.txt with notepad.
- Search with notepad (Control + F) for:  "multi_scene_custom_1"
- You will see the map name, just edit it how you like.
note: Don't use spaces!! use underscores:  _
note2: Don't replace str_multi_scene_custom_1 itself, replace the stuff after it.

- When your done with this line search for: "2multi_scene_custom_1"
note: This is the name it is displayed as on the website It needs to be URL encoded.  For instance %20 means a space, get all the special characters at:
http://www.blooberry.com/indexdot/html/topics/urlencoding.htm
note2: Don't replace str_2multi_scene_custom_1 itself, replace the stuff after it.

If you want your admins to see the new names for the maps, give them your edited strings.txt file.


Have your own Announcements
- Open up the file strings.txt with notepad on the server.
- Search with notepad (Control + F) for:  "str_announce_1"
- You will see all the announcement texts, just edit them how you like.
note: Don't use spaces!! use underscores:  _


How does some stuff work?

Auto kick and ban
- People get kicked after 5 teamkills in one map or -3 score.
- After you already got kicked twice in 24 hours the 3th time your up for a kick you get perm banned.
- Data is stored in dummy troops. It works on Player CD keys and not playernames.

Data sent to our stats server
Data your sending to our server (every minute) is:
- Servername
- Mapname
- GameType
- Current Playercount
- Maximum Playercount



Credits
Special thanks go out to:
- Beaver, A walking module system database, Always willing to help. And did some scripts.
- Daegoth, Always ready to answer any engine questions and always implementing my bug/feature requests.
- The 22nd Clan My friends, My support, I love you all.

« Last Edit: February 20, 2011, 09:18:21 AM by Vincenzo »
 

Turanien

  • Guest
Re: [MP] Native compatible Admin Tools. V1.0
« Reply #1 on: October 12, 2010, 04:15:59 PM »
Oh! Which one do we use?    :)

Admin Mod (For Native Servers) or this one?

Yoshiboy

  • Master baiter
  • Grandmaster Knight
  • *
  • - Everything is a metaphor -
    • View Profile
    • My Website
  • Faction: Neutral
  • MP nick: irc://yoshiboy
  • M&BWB
Re: [M] Native compatible Admin Tools. V1.0
« Reply #2 on: October 12, 2010, 04:26:01 PM »
This looks great! Nice work.

Darwin

  • Watchin' your language...
  • Language Moderator
  • *
  • Life's a play.
    • Skype - darwin989
    • Steam - the_darwin
    • View Profile
  • Faction: Neutral
  • M&BWBWF&S
Re: [M] Native compatible Admin Tools. V1.0
« Reply #3 on: October 12, 2010, 04:29:40 PM »
Yeah, sounds really nice.  :)

Yoshiboy - Yeah lets just forget about that stuff.

'llright...
« Last Edit: October 12, 2010, 04:37:31 PM by Darwin »
Shhh.

Broomstick

  • Grandmaster Knight
  • *
  • Norway > USA
    • View Profile
  • Faction: Vaegir
  • MP nick: BROxVIPER
  • WBNW
Re: [M] Native compatible Admin Tools. V1.0
« Reply #4 on: October 12, 2010, 04:40:12 PM »
Nice stuff, was really fun to use the 0.63 or something!
Now, however, we have much more epic stuff. :)
(click to show/hide)
(click to show/hide)

Apsod

  • Sergeant Knight at Arms
  • *
  • Battle of Europe Developer
    • View Profile
  • Faction: Nord
  • MP nick: Cutter/Apsod
  • M&BWBNW
Re: [M] Native compatible Admin Tools. V1.0
« Reply #5 on: October 12, 2010, 05:08:19 PM »
Wow another one of these mods :P Nice work Vinc :)

MaHuD

  • Napoleonic Wars Moderator
  • *
  • Blazing and burning are the jewels of war.
    • View Profile
  • Faction: Nord
  • MP nick: CoR_Hired_Blade
  • M&BWBWF&SNW
Re: [M] Native compatible Admin Tools. V1.0
« Reply #6 on: October 12, 2010, 05:36:57 PM »
Gj and thanks for releasing it :)

Trevty

  • Belieber Man
  • Grandmaster Knight
  • *
  • <3 Bieber
    • Skype - Trevty1995
    • Steam - trevty
    • View Profile
  • Faction: Neutral
  • MP nick: Hoboknight_Trevty
  • M&BWBWF&SNW
Re: [M] Native compatible Admin Tools. V1.0
« Reply #7 on: October 12, 2010, 06:05:30 PM »
Well, the Hoboknights have switched from the other admin mod to this one.  Mostly due to the fact that this is more complete.

Plazek

  • Master Knight
  • *
    • View Profile
  • Faction: Neutral
Re: [M] Native compatible Admin Tools. V1.0
« Reply #8 on: October 12, 2010, 06:43:20 PM »
May you raise the holy ban hammer and destroy the infidel!

 8-)

Trevty

  • Belieber Man
  • Grandmaster Knight
  • *
  • <3 Bieber
    • Skype - Trevty1995
    • Steam - trevty
    • View Profile
  • Faction: Neutral
  • MP nick: Hoboknight_Trevty
  • M&BWBWF&SNW
Re: [M] Native compatible Admin Tools. V1.0
« Reply #9 on: October 12, 2010, 06:50:04 PM »
Question: How do we define when the announcements will be shown?

Vincenzo

  • External Developer
  • *
  • Coder of code
    • View Profile
    • Flying Squirrel Entertainment
  • Faction: Neutral
  • MP nick: FSE_Vincenzo
  • M&BWBWF&SNW
Re: [M] Native compatible Admin Tools. V1.0
« Reply #10 on: October 12, 2010, 07:19:41 PM »
Question: How do we define when the announcements will be shown?
Currently every 5 minutes, hah, great suggestion will  make it a setting.


Forgot to mention..

Admin Chat; Press the U button to chat in [SERVER] messages

Edit:
- Added tutorial how to add your custom maps.
- Added tutorial how to make the website stats your own style.
« Last Edit: October 12, 2010, 08:21:41 PM by Vincenzo »
 

DonaldMacDonald

  • Sergeant Knight
  • *
  • Colonel of the 92nd Gordon Highlanders
    • View Profile
    • 92nd Gordon Highlanders Forum
  • Faction: Neutral
  • MP nick: 92nd_Col_John_Cameron
Re: [M] Native compatible Admin Tools. V1.0
« Reply #11 on: October 12, 2010, 09:34:18 PM »
Congratulation on releasing it at least Vince. I'm sure the whole community will love it~ you put alot of work into it.

Best regards,

Donald MacDonald

Mr.X

  • Guest
Re: [M] Native compatible Admin Tools. V1.0
« Reply #12 on: October 12, 2010, 10:22:32 PM »
Brilliant.

EDIT: Question, is there a way to add different tiers of admins. For instance say and "admin" has access to all that, but then you also have "mods" who can kick/temp ban people perhaps?
« Last Edit: October 13, 2010, 03:37:36 AM by Mr.X »

Vincenzo

  • External Developer
  • *
  • Coder of code
    • View Profile
    • Flying Squirrel Entertainment
  • Faction: Neutral
  • MP nick: FSE_Vincenzo
  • M&BWBWF&SNW
Re: [M] Native compatible Admin Tools. V1.0
« Reply #13 on: October 13, 2010, 07:58:08 AM »
Currently warband does not support any admin levels at all.

I can look into coding some system, but don't get your hopes up. Better just give admin to people you trust.
« Last Edit: October 13, 2010, 08:25:13 AM by Vincenzo »
 

Stigblue7

  • Recruit
  • *
    • View Profile
  • Faction: Nord
  • MP nick: Elder_Stig_of_Niflheim
Re: [M] Native compatible Admin Tools. V1.0
« Reply #14 on: October 13, 2010, 09:16:34 AM »
 Whoa that is an amazing mod, this should be stickied for the good of the warband community :O
I'll be back...