README.md 3.84 KB
Newer Older
1
**Depends on EmpUtils**
Mikleo's avatar
Mikleo committed
2

3
4
By default it will use the base votelists. To disable this behaviour set ef_votelist_base to 0.

5
6

**How to Make a Scenario.**
7
8

**What is a scenario?**
Mikleo's avatar
Mikleo committed
9

10
A scenario is just a savestate for Buildings,Vehicles,Props, Resources, Tickets, Research and the Command Vehicle. It can be used to easily create a new take on an existing map. You can create a new scenario in minutes rather than spending countless hours learning and compiling new maps in hammer. Also unlike maps, clients do not need to download scenarios because it just edits the networked entities of the existing map.
11

Mikleo's avatar
Mikleo committed
12
**Dedicated Server**
Mikleo's avatar
Mikleo committed
13

Mikleo's avatar
Mikleo committed
14
15
16
If you are creating a scenario on a dedicated server with sourcemod all you need is this plugin and emputils

**Local Server**
Mikleo's avatar
Mikleo committed
17

18
19
20
21
22
23
24
25
26
27
28
29
30
31
However If you want to do this on a local server download This folder and extract it to your empires/empires folder: 

https://git.empiresmod.com/Mikleo/scenariopackage/-/archive/master/scenariopackage-master.zip

Then create a local server on whatever map. 

Before you start working make sure to type in chat:

!updater_check

!map [currentmapname]

This will make sure your plugins are up to date.

Mikleo's avatar
Mikleo committed
32
**Creating Scenarios**
33
34
35
36
37
38
39
40

You should then create the scenario in spec before the round begins because it will save the teams current resources and tickets, which will change after the round begins.

If you are not working on a local server you should copy editor.cfg to your local empires install

Before you start editing you should enter into console "exec editor"
This will set up easy hotkeys you can use for easy editing
Main hotkeys white pointing at an entity are:
Mikleo's avatar
Mikleo committed
41

42
E : grab entity
Mikleo's avatar
Mikleo committed
43

44
R : clone entity and grab the clone
Mikleo's avatar
Mikleo committed
45

Mikleo's avatar
--    
Mikleo committed
46
47
48
49
scrollwheel: rotate grabbed entity

arrow keys: manipulate height/distance of grabbed entity.

50
Z : repeat last create command, *this is very useful*
Mikleo's avatar
Mikleo committed
51

52
delete: delete entity
Mikleo's avatar
Mikleo committed
53

Mikleo's avatar
--    
Mikleo committed
54
55
ctrl/jump: go up and down

Mikleo's avatar
Mikleo committed
56

57
numpad buttons: change spec speed: very important for precise placement
Mikleo's avatar
Mikleo committed
58

59
60
61
62
63
64
65
66
67
68
69
70
71
and more: view editor.cfg. 

The hotkeys can do almost everything. The only command you really need to know is /create.
simply type /create and it will show you the options. type /create [option] and it will show you the parameters needed to create it.

Here is a video of creating a scenario using hotkeys and the create command:
https://www.youtube.com/watch?v=KVIOIMu_YGM&feature=youtu.be


For the list of commands visit Mr. X's wiki:
https://github.com/Xiaminou/HardcoreEmpires/wiki/Empfun


Mikleo's avatar
Mikleo committed
72
**Saving a scenario**
73

74
/snr description "2 bases close together in the middle of the map"
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89



(Do not use baseswap on maps that contain precaptured flags as they will not be switched. e.g. conquest maps.) 

And Finally:

/savescenario "MidBattle"

The file is stored in scenarios\[shortmapname]

You can always edit the .snr file as a text file and change the data manually. But do not change or remove the "version" field. 

You can then load the scenario later using !loadscenario, make changes and save it again.

Mikleo's avatar
Mikleo committed
90
**Scenario Vote List**
91
92
93
94
95
96
97
98
99
100
101
102
103

This is the votelist at the start of the map stored in votelist.txt next to the scenarios

Please note Do not edit votelist_base.txt files. It will be overriden, rename it to votelist.txt

You can easily add and remove scenarios, enable or disable the maplist in game via !scenariovotelist [enable/disable/add/remove]

**Adding Scenarios to UMC mapvotes**

For this to work you will need to copy and paste a valid map file and rename it to [mapname]#[scenario] e.g. emp_coast#flags  before including it in your mapvotes.

It will still use the main map file and clients won't need to redownload the map. This step is just trick UMC.

104
**Edict Counts**
105

106
Do not go overboard on static entities, they all count as edicts. Type "status" in console to see the number of edicts on the map+scenario.
107

108
In general edict counts under 750 are considered safe. If you go over this limit you risk the game running out of edicts at very high player counts.