Modded: Difference between revisions

From Gothongs Wiki
Jump to navigationJump to search
Created page with "{| style="border: 3px solid #9f9f9f;" align="center" width="100%" ! colspan="3" align="center" style="background-color: #cecece; padding:2px; font-size:18px;" |<font color="White">Main Menu</font> |} <br> {| style="text-align: center; vertical-align: text-top; width:100%;" cellspacing="0" cellpadding="0" border="0" | style="width: 14%;" |link=Missions|64px | style="width: 14%;" |link=Thongs|64px | style="width: 14%;" |[..."
 
Panda (talk | contribs)
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| style="border: 3px solid #9f9f9f;" align="center" width="100%"
 
! colspan="3" align="center" style="background-color: #cecece; padding:2px; font-size:18px;" |<font color="White">Main Menu</font>
|}
<br>
{| style="text-align: center; vertical-align: text-top; width:100%;" cellspacing="0" cellpadding="0" border="0"
| style="width: 14%;" |[[File:Menu_quests.webp|link=Missions|64px]]
| style="width: 14%;" |[[File:Menu_thongs.webp|link=Thongs|64px]]
| style="width: 14%;" |[[File:Menu_weapons.webp|link=Weapons|64px]]
| style="width: 14%;" |[[File:monster.png|link=Monsters|64px]]
| style="width: 14%;" |[[File:Menu_enchants.webp|link=Enchants|64px]]
| style="width: 14%;" |[[File:Gold.webp|link=Endgame|64px]]
| style="width: 14%;" |[[File:Menu_mods.webp|link=Modded|64px]]
|-
|[[Missions]]
|[[Thongs]]
|[[Weapons]]
|[[Monsters]]
|[[Enchants]]
|[[Endgame]]
|[[Modded]]
|}
<br>
Modding can be a great thing for any game, it adds a lot of user content that everyone can enjoy!
Modding can be a great thing for any game, it adds a lot of user content that everyone can enjoy!
To make your own mod it is a good idea to visit [[:Category:Tutorials]]!


On the GoThongs Github you can find all sorts of information on modding, I will include some basic information here on how to get started but I recommend you check out the modding wiki on Github to obtain very in-depth information!
On the GoThongs Github you can find all sorts of information on modding, I will include some basic information here on how to get started but I recommend you check out the modding wiki on Github to obtain very in-depth information!
Line 27: Line 8:
> https://github.com/JasXSL/GoThongs/wiki
> https://github.com/JasXSL/GoThongs/wiki


Please be aware that this code requires the Firestorm Viewer!
Please be aware that this code requires a viewer that supports LSL Preprocessors! (such as Firestorm or Alchemy)


Download the [https://github.com/JasXSL/SL-XOBJ XOBJ] and the  
Download the [https://github.com/JasXSL/SL-XOBJ XOBJ] and the  
Line 36: Line 17:
C:\SL_Libraries\xobj_toonie<br>
C:\SL_Libraries\xobj_toonie<br>
C:\SL_Libraries\got (Extract Gothongs files into this folder)<br>
C:\SL_Libraries\got (Extract Gothongs files into this folder)<br>
Load up firestorm and open a script window.<br>
 
Click the cog icon at the top of the script editor to open up Editor Preferences.<br>
 
Check "Enable LSL preprocessor", "Script Optimizer", and "#includes from local disk"<br>
Load up your viewer of choice and access the LSL Preprocessor settings.<br>
Set the preprocessor include path to C:\SL_Libraries<br>
 
Close and re-open the script editor.<br>
On Firestorm, open the Preferences (ctrl+P), go to "Firestorm" tab, then "Build 1" tab and enable "LSL Preprocessor", and "#includes from local disk". Finally, set the LSL preprocessor include path to the folder you created previously. (e.g. ''C:\SL_Libraries'')<br>
 
On Alchemy, since it lacks a Preferences tab for Preprocessor, you can do it this way:<br>
Open the Preferences (ctrl+P), then go to "Advanced" tab and enable "Show Advanced Menu". Then, click the newly visible Debug button at the top of the viewer screen, then click "Show Debug Settings" and search "preproc". Then, enable (set to True) "AlchemyLSLPreprocessor", "AlchemyPreProcEnableHDDInclude", and set "AlchemyPreProcHDDIncludeLocation" path to the folder you created previously. (e.g. ''C:\SL_Libraries'')<br>
 
 
Once the Preprocessor, #Include, and path are enabled and set in either viewers, close the window and try the bellow in a new script:<br>
 
Test the following code to see if it worked:
Test the following code to see if it worked:
<br>
<br>
Line 52: Line 40:
     }
     }
  }
  }
For more help check out the tutorials category!
[[Category:Tutorials]]

Latest revision as of 14:43, 30 August 2024

Modding can be a great thing for any game, it adds a lot of user content that everyone can enjoy!

To make your own mod it is a good idea to visit Category:Tutorials!

On the GoThongs Github you can find all sorts of information on modding, I will include some basic information here on how to get started but I recommend you check out the modding wiki on Github to obtain very in-depth information!

> https://github.com/JasXSL/GoThongs/wiki

Please be aware that this code requires a viewer that supports LSL Preprocessors! (such as Firestorm or Alchemy)

Download the XOBJ and the GoThongs master archives containing the libraries.
Create a folder for the LSL libraries (Example: C:\SL_Libraries)
Unzip the files in there so you have the following folders:
C:\SL_Libraries\xobj_core
C:\SL_Libraries\xobj_toonie
C:\SL_Libraries\got (Extract Gothongs files into this folder)


Load up your viewer of choice and access the LSL Preprocessor settings.

On Firestorm, open the Preferences (ctrl+P), go to "Firestorm" tab, then "Build 1" tab and enable "LSL Preprocessor", and "#includes from local disk". Finally, set the LSL preprocessor include path to the folder you created previously. (e.g. C:\SL_Libraries)

On Alchemy, since it lacks a Preferences tab for Preprocessor, you can do it this way:
Open the Preferences (ctrl+P), then go to "Advanced" tab and enable "Show Advanced Menu". Then, click the newly visible Debug button at the top of the viewer screen, then click "Show Debug Settings" and search "preproc". Then, enable (set to True) "AlchemyLSLPreprocessor", "AlchemyPreProcEnableHDDInclude", and set "AlchemyPreProcHDDIncludeLocation" path to the folder you created previously. (e.g. C:\SL_Libraries)


Once the Preprocessor, #Include, and path are enabled and set in either viewers, close the window and try the bellow in a new script:

Test the following code to see if it worked:

#include "got/_core.lsl"

default
{
    state_entry()
    {
        Alert$freetext(llGetOwner(), "Hello World!", FALSE, TRUE);
    }
}

For more help check out the tutorials category!