Today I’ve decided to release this version of SSC.
There somewhere is the original version of SSC, but I decided to completely redesign it and build it from grounds-up. This version does not have a single block of code from another version, it was written from bare bones.
Anyway, As you probably seen from the video(I’ve added some NCS calm music ) it can be useful, if you put some work into it.
I’ll give you that it doesn’t look perfect, or even pretty! But I’m not UI or UX designer by any means.
I’ll keep it short.
If you have any ideas how to improve this script, I’ll be happy to hear them!
New menu? → Sure!
Whole section is useless and should be removed? → Such is life, better get to it and remove it!
Managing entities is bad? → Give me something that I could improve on, even paint png will do!
Alright, now that we have it out of the way…
Features
Easy to use
Quick replacement to ordinary .ymaps
Low to none performance impact (0.00ms idle, NUI to be checked)
Manage entities from certain scenes
There are few quirks here and there, such as mission flag set as true as default for some reason.
Also scenes should be called categories or groups as you operate on sessions as whole.
Commands:
For Admins only, quick replacement for Config.StaticScenes
/loadscenebucket [id] || manually loads static file(attached files are executed)
These ones are already available through settings editor
/openssc || opens UI, default binded at TAB
/createsession [id] → def 0 || creates/loads session but not overwrites it
/loadsession [id] → def 0 || unloads current session and loads defined one
/unloadsession || unloads current session
/savesession || saves current session, mostly unused as everything is saved automatically
/createtemplate [id] || creates template from current session
/loadtemplate [id] || loads created template
/attachfile [name] || attaches file to current session file (used in static scenes)
/detachfile [name] || detaches file from current session file (used in static scenes)
/createstaticmap [id] || creates static file to be loaded through config
Some Tips:
Most things are made for M1 and M2 and dragging
using Select on entity element in editor you can select certain entities either by using select box (hold and move M1) or Shift+hold and move M1. In first case you will de-select all entities.
Focus In Workspace automatically drags certain element to your mouse pos.
Changing entity rot in Workspace automatically updates said entity
If you want separate file for managing certain entities you have to create it according to main.lua
TaskPlayAnim is overwritten in session.lua as it’s server-side. It handles client-side anim dict loading.
Warning
This script should not be used on normal servers with editor. You should set GConfig.Enable to false, to prevent any issues as editor is not yet equipped with efficient and proper administrator tools.
Added “Search Entity” for adding entities from the world
Added new commands: /removetemplate [id], /removesession [id]
Added new settings menu (as seen above)
Added loading templates into the scene
Added basic settings for editor (fontSize, opacity)
Improved work flexibility
Removed command: /savetemplatescene
Fixed hard-coded vehicle model in Static Scenes
I’ll post new video in the main post.
If for some reason you want to use older version, there are separate releases of these versions on github.
If you have any ideas, please share them with me on here or dms(can be for other/new scripts)
Next up is for sure re-work of entity position manipulation.
P.S.
Settings can be accessed through SSC title in main editor, ss down below.
New version including many new features and bug fixes (next 1.2.0 is already in the works, I’m planning to improve its workflow by adding classes and improved integration for other scripts. I’ll be also developing Quest/Object Creator that will feature this script)
Added “Remove Template” in editor settings
Added bigger delay for refreshing metadata files
Added protection and ignore for spawned and added peds
Added support for multiple static scenes at once (using buckets)
Added automatic search for files(loading from dir ‘data’, Windows tested)
Moved menu settings into settings nav
Added misc settings for server side funcs
Added manual search for files in misc (see automatic search)
Fixed loading scene not removing added entities from unloaded session
Fixed “Remove Session” showing with 0 sessions available
Fixed creating session not updating sessions in editor settings
Fixed creating template not updating templates in editor settings
Fixed entity name(id) not showing at first using “go_to”
Fixed entity not updating it’s changed category/scene
Fixed entity mission flag set always as true
Fixed entity creation flags set as false no matter selected options
Fixed entity changing category not saving
Fixed entity adding setting it’s type as 0 /object
Fixed “searched entity” ped spawning in the air
Fixed peds spawning in the air after loading session
My next plans are as previous, and add to that Integrated Admin System for easier manage.
I’ll also try to re-work entity placement and add more features to workspace and/or eventually replace it entirely.
I’ll try to post new video in the main post later this day.
It loads fine for me on browser but I’ve edited and placed the link directly above the video.
I’ll later post brand new video, the one put there shows how to work with the script using commands,
If you’ve got 1.1.1 version, you’ll find most things intuitive and in settings menu.
Added info in settings in case of improper permissions
Added many early exits in commands and events in case of improper permissions
Added simple non intrusive version checking.
Removed ‘print’ funcs leftover on server-side
Changed Settings editor to set as focused on default
Changed ESC to first close settings instead of whole editor
Changed “load” functions in NUI to only execute after Checking Permissions
Fixed peds spawning in the air in static maps
Fixed multiple same Static Maps not loading despite being assigned to other buckets
Fixed Loading Static Scenes removing other scenes from other buckets
Fixed “Load Session” being visible with no available sessions
Improved Server Event Safety(source argument)
Improved Admin Permissions and separated them from editor and static scenes
Admin functions done, next one maybe finally rework of the entity re-placement. I’ll also try to improve workspace and maybe replace it entirely.
Any suggestions or ideas are welcome!