Update README.md
This commit is contained in:
parent
5378b3724b
commit
a48e42bff1
25
README.md
25
README.md
@ -24,30 +24,7 @@ The builder site for the test server can be accessed at: https://nwn-test.sinfar
|
|||||||
The test server will periodically be refreshed with the scripts, areas, etc from the 1.69 server. What that means is your changes on the test server may get overwritten unless you do them correctly.
|
The test server will periodically be refreshed with the scripts, areas, etc from the 1.69 server. What that means is your changes on the test server may get overwritten unless you do them correctly.
|
||||||
|
|
||||||
### For Scripts
|
### For Scripts
|
||||||
Generally speaking, make changes to files on the test server for testing/development purposes. Once you have identified the change that needs to be made and actually saved long term - those changes will need to be made on the 1.69 scripts. There are lots of script changes however which either won't compile, aren't compatible, or just don't make sense for the 1.69 server. In those cases we have special preprocessor tags we can use:
|
Read through [FIXING SCRIPTS](FIXING_SCRIPTS.md)
|
||||||
```c
|
|
||||||
void main()
|
|
||||||
{
|
|
||||||
// This code runs in all cases
|
|
||||||
SendMessageToPC(OBJECT_SELF, "A message for everyone!");
|
|
||||||
|
|
||||||
// #NWNEE-START#
|
|
||||||
// // This code will only run on the EE server
|
|
||||||
// PrintString("This server is running NWNEE");
|
|
||||||
// #NWNEE-END#
|
|
||||||
|
|
||||||
// #DIAMOND-START#
|
|
||||||
// // This code will only run on the 1.69 server
|
|
||||||
PrintString("This server is running 1.69.");
|
|
||||||
// #DIAMOND-END#
|
|
||||||
}
|
|
||||||
```
|
|
||||||
You can define blocks of code which will be ignored by the 1.69 NWScript compiler, but will be used by the NWNEE compiler.
|
|
||||||
|
|
||||||
In the example above:
|
|
||||||
- `SendMessageToPC(OBJECT_SELF, "A message for everyone!");` will be seen by both compilers
|
|
||||||
- The code between the `// #NWNEE-START#` and `// #NWNEE-END#` will only be seen by the NWNEE compiler. Please note that all of the NWNEE specific code **MUST** be commented out as shown in the example
|
|
||||||
- The code between the `// #DIAMOND-START#` and `// #DIAMOND-END#` will only be seen by the 1.69 compiler. This code should **NOT** be commented out
|
|
||||||
|
|
||||||
### For everything else
|
### For everything else
|
||||||
For all other types of resources - if there is something that needs to be fixed do it on the 1.69 server. If it can't be fixed on the 1.69 server because it is an issue caused by EE - let NelaK know and we will try to fix however that resource is being handled by the server rather than changing that resource.
|
For all other types of resources - if there is something that needs to be fixed do it on the 1.69 server. If it can't be fixed on the 1.69 server because it is an issue caused by EE - let NelaK know and we will try to fix however that resource is being handled by the server rather than changing that resource.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user