From a48e42bff1931e749ada88a5561bc9a75b0a4d16 Mon Sep 17 00:00:00 2001 From: kalen Date: Wed, 9 Jul 2025 04:21:13 +0000 Subject: [PATCH] Update README.md --- README.md | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/README.md b/README.md index 1387b2d..499df40 100644 --- a/README.md +++ b/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. ### 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: -```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 +Read through [FIXING SCRIPTS](FIXING_SCRIPTS.md) ### 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.