Recent posts

#11
Bugs and Crashes / Re: No squirrel game mode was ...
Last post by MEGAMIND - Apr 14, 2026, 12:01 PM
Quote from: DNeep on Apr 14, 2026, 11:49 AM

Here are the files present in the plugins folder
Download and run pls Server
#12
Bugs and Crashes / Re: No squirrel game mode was ...
Last post by DNeep - Apr 14, 2026, 11:49 AM


Here are the files present in the plugins folder
#13
Script Showroom / Modular Support
Last post by PSL - Apr 14, 2026, 11:07 AM
This is a lightweight, modular management framework designed specifically for the Squirrel language. With zero dependencies and ready to use right out of the box, it comprehensively resolves the issues inherent in traditional single-script architectures—such as disorganization, difficulty in maintenance, lack of hot-updating capabilities, and event conflicts.

Through a unified module manager, the framework facilitates module loading, unloading, dependency management, lifecycle control, automatic global event dispatch, and secure timer isolation—thereby enabling your server scripts to truly achieve an engineered, modular, and extensible architecture.

  • Each module resides in a separate file with its own isolated scope, ensuring no mutual interference and resulting in a clean, easily maintainable code structure.
  • Supports single-module loading, batch loading, and dependency-aware loading; automatically detects whether a module has already been loaded to prevent redundant execution.
  • Features built-in `onScriptLoad` and `onScriptUnload` lifecycle hooks, which execute automatically whenever a module is loaded or unloaded.
  • Covers events across all scenarios—including server, player, vehicle, item, command, and chat interactions—with all modules automatically listening for these events, eliminating the need for manual hook binding.
  • Includes a dedicated `newTimer` function that binds timers directly to their respective modules; timers are automatically destroyed when a module is unloaded, effectively preventing memory leaks.
  • Enables cross-module function calls and variable access via `getModule()`, facilitating seamless functional interoperability between modules.
  • Supports the unloading of individual modules as well as a one-click option to clear all modules, allowing for hot-reloading without requiring a server restart.
  • Avoids polluting the global scope and leaves native logic unmodified; integration is straightforward and compatible with all standard Squirrel environments.

Here is a simple example.

function onPlayerJoin(player) {
MessagePlayer("[#FFFF00]Hello " + player.Name, player);
}

function onScriptLoad() {
print("onScriptLoad: " + moduleName);
}

function onScriptUnload() {
print("onScriptUnload: " + moduleName);

a.Delete();
}

function hello(value) {
print("hello " + value);
}

a <- newTimer("hello", 1000, 0);

Place the script file into the "module" folder, then load the filename to add the script's functionality to the server.

ModuleManager.load("testModule");

#14
Bugs and Crashes / Re: No squirrel game mode was ...
Last post by MEGAMIND - Apr 14, 2026, 11:05 AM
Quote from: DNeep on Apr 14, 2026, 10:18 AM

I did it, but the same error is still coming  :o

Make sure your directory is like this



and inside scripts folder you have



if you still get there error you main.nut could be the problem
#15
Bugs and Crashes / Re: No squirrel game mode was ...
Last post by DNeep - Apr 14, 2026, 10:18 AM


I did it, but the same error is still coming  :o
#16
Bugs and Crashes / Re: No squirrel game mode was ...
Last post by MEGAMIND - Apr 14, 2026, 10:03 AM
Quote from: DNeep on Apr 14, 2026, 10:02 AMhmm done But now it is showing this error.


dude rename 32 to 64
#17
Bugs and Crashes / Re: No squirrel game mode was ...
Last post by DNeep - Apr 14, 2026, 10:02 AM
hmm done But now it is showing this error.

#18
Community Plugins / Re: A.I Plugin
Last post by MEGAMIND - Apr 14, 2026, 10:01 AM
Quote from: PLAYER on Apr 13, 2026, 05:04 PMLinux plugin pls
the source is open if u have a linux do compile it  ;D
#19
Bugs and Crashes / Re: No squirrel game mode was ...
Last post by MEGAMIND - Apr 14, 2026, 09:58 AM
Quote from: DNeep on Apr 14, 2026, 09:56 AM
Quote from: MEGAMIND on Apr 14, 2026, 09:48 AM
Quote from: DNeep on Apr 14, 2026, 09:38 AM

How to fix this error  :o
whats inside ur server.cfg?

make sure ur server.cfg has this structure

gamemode Default
plugins xmlconf04rel32 announce04rel32 squirrel04rel32
port 8192
sqgamemode scripts/main.nut
maxplayers 100

This

name MyServer
maxplayers 50
port 8192
gamemode squirrel
plugins squirrel04rel64 announce04rel64 sqlite04rel64
wrong make sure it has the same structure as i provided
#20
Bugs and Crashes / Re: No squirrel game mode was ...
Last post by DNeep - Apr 14, 2026, 09:56 AM
Quote from: MEGAMIND on Apr 14, 2026, 09:48 AM
Quote from: DNeep on Apr 14, 2026, 09:38 AM

How to fix this error  :o
whats inside ur server.cfg?

make sure ur server.cfg has this structure

gamemode Default
plugins xmlconf04rel32 announce04rel32 squirrel04rel32
port 8192
sqgamemode scripts/main.nut
maxplayers 100

This

name MyServer
maxplayers 50
port 8192
gamemode squirrel
plugins squirrel04rel64 announce04rel64 sqlite04rel64