Skip to content

Releases: YimMenu-Lua/Samurais-Scripts

Samurai's Scripts v1.9.1

05 Apr 08:37

Choose a tag to compare

Changelog

PR #127: refactor: refactor BSV2 + rename some folders

Billionaire Services

  • Refactored UI code (visuals are still the same).
  • Fixed ImGui assertion error.
  • Added a new tab to create new Escort Groups and save them to JSON.

Config

  • Removed stale config keys.
  • Moved large feature-specific configs into their own files (users will not be affected).
  • Serializer: Added some logic to handle stale/moved keys.

Bugs

  • Fixed some logic bugs in a few modules/services.
  • Fixed CommandExecutor navigation keys for suggestions and history not working.
  • Renamed some folders.

Samurai's Scripts v1.9.0

31 Mar 00:02
f1227d9

Choose a tag to compare

Changelog

PR #121: fix(misc): miscellaneous fixes and improvements

  • With this, configs should no longer get corrupted and even if they do, a backup is always available.

Note

For YimLuaAPI compatibility, this relies on TupoyeMenu/YimLuaAPI#3

PR #122: refactor(Translations): Refactor locales

  • Store locales in an array of strings.
  • Refactor language name displays in the settings UI.
  • Remove redundant config keys.
  • Add safer fallbacks in case the Translator fails to load.

PR #125: fix: some bugs

  • Refactor keybinds UI and block unbinding the main GUI toggle key.
  • Fix UI issues and bugs related to the previous Translator refactor.

Closes #123
Closes #124

PR #126: fix(keybinds): fix reset logic

Samurai's Scripts v1.8.9

19 Mar 14:11

Choose a tag to compare

Changelog

PR #120: chore: update for Legacy b3788.0

  • Nothing changed in b3788.0. Not sure about Enhanced.
  • Fix load order. Resolves #119

Samurai's Scripts v1.8.8

15 Mar 08:31

Choose a tag to compare

Changelog

PR #117: fix: miscellaneous

Formatting

  • Remove forced line wrapping.

Classes

  • Remove constructor logic from CStructView.
  • Cache and automatically refresh some object pointers.
  • Refactor nullptr into an immutable lightweight object.

PR #118: fix(Factory): cache script global instances

Samurai's Scripts v1.8.7

08 Mar 08:25

Choose a tag to compare

Changelog

PR #114: refactor(classes): refactor game classes

PR #115: fix(misc): miscellaneous fixes

PR #116: fix(Game): fix logic bugs

  • Fix logic bugs in GetClosestVehicle and GetClosestPed

Samurai's Scripts v1.8.6

01 Mar 08:25

Choose a tag to compare

Changelog

PR #108: fix(require): fix verbose require paths

  • Remove SSV2 folder name from require paths.

PR #107: feat: Add YHV1 cooldowns and enable features allowed with new YLAPI

CasinoPacino:

  • Enable Casino features for Enhanced (Requires latest YimLuaAPI)

YHV1:

  • Add checks and toggles to skip all heist cooldowns (Requires config update)
  • [Cayo] Add Request Submarine button to quick call Kosatka
  • [Cayo] Enable Teleport and Waypoint to Kosatka if spawned
  • [Cayo] Fix incorrect indexes for setting and now getting Secondary Targets
  • Modified UI for all tabs

Warehouse:

  • Simplify crate value calculation

commands:

  • Add teleport (tp) command to waypoint or XYZ coordinates

GUI:

  • Fix top section scaling on resolutions not 1080p

PR #109: feat(YHV1): Add Doomsday tab and improve Cayo

Mastermind:

  • Rebrand from YimHeistsV1
  • Add Doomsday tab with Teleport, Waypoint, and Skip Preps of all Doomsday Heist Acts (1-3)
  • [Cayo] Submarine coords are now read from Global
  • [Cayo] Fix Secondary Targets not initializing at the right time
  • [Cayo] Fix the Disable Cooldown toggle being disabled if there was a cooldown 🤦

Game:

  • Add a somewhat proper way to check transition state

Features:

  • Update YHV1 section

And some spotty refactoring.

PR #112: fix(Misc): miscellaneous fixes

Serializer

  • Write a backup of the config file once on init.
  • Automatically recover corrupted config files if a backup exists.
  • Fix SyncKeys method.

Misc

  • Revert Game.IsOnline so that we don't call natives outside the fiber.
  • Fix table utils.
  • Remove SSV2 folder name from require path.

closes #111

PR #113: fix(Mm): Proper checks

Mastermind:

  • Add proper Submarine spawn check from Global
  • Alter property checks to be safer

Samurai's Scripts v1.8.5

22 Feb 08:26

Choose a tag to compare

Changelog

PR #106: refactor(style): normalize class methods

  • Normalized more SmallBase class methods into PascalCase for consistency.
  • Add a _J macro for joaat that falls back to our own definition if the global function is missing.
  • Add stats.get_string and stats.set_string
  • Fix PrivateLimo:TakeControl method.
  • Fix YimActions interruption handler triggering when the a scenario is explicitly stopped.
  • Fix bodyguards UI.
  • Add a "earnings report" section to the CEO tab.

Samurai's Scripts v1.8.4

15 Feb 15:36
84330af

Choose a tag to compare

Changelog

PR #100: refactor(Businesses): refactor CEO

  • Move special cargo warehouses into a new Office class.
  • Fix warehouse restock command.
  • Add a Player Abilities option to the Self tab.
  • Fix Key binds UI's fatal crash issue in YimLuaAPI.
  • Disable ALT key in KeyManager.
  • Make ground loading in Self:Teleport optional to prevent teleporting to building roofs instead of ground in some cases (will properly fix later).
  • Move ImGuiChildFlags to the ImGui extensions file.
  • Make ImGui.BeginChildEx more readable and easier to reason about.

PR #101: feat(YHV1): Add heists script

Create YimHeistsV1 (idk if that name will be final) for quick prep skips and currently Cayo Perico setup.

  • Add prep skips and teleports/waypoints for Cluckin Bell, KnoWay, Dr Dre, and Oscar Guzman
  • Add Cayo Perico tab allowing for unlocking all options, setting primary/secondary targets, weapon loadout, hard mode

PR #102: refactor: several refactors

General

  • Renamed the Self module to LocalPlayer to avoid confusion with Lua's self (this) keyword.
  • Moved the Teleport function from LocalPlayer to Ped. Invoking it is still the same, you just call LocalPlayer:Teleport(...).

YRV3

  • Refactored Auto-Sell: YRV3 no longer sets any script globals or locals; each supported sale script takes care of itself.
  • Added Import/Export tab to the CEO tab. Right now this only displays data and offers tips about profit strategy. Auto-Sell and Auto-Steal may be added in the feature (this is not a promise).
  • Fixed auto-sell for biker businesses. This no longer "assumes" the number of deliveries and causes you to get paid a lot more than you should.
  • Refactored UI:
    • Each business now has its own UI file to avoid bloating the main file and make it easier for devs to extend it.
    • Each file that uses measureBulletWidths now caches the result.

Casino Pacino

  • Casino Heist tab is now guarded behind Arcade ownership. The tab won't display heist options if the player doesn't own an Arcade.
  • Improved UI and added teleport and waypoint buttons for the casino and the arcade.

Dev/Scripts

  • Fix broken regex patterns in globals_locals.lua
  • Fix update_offsets.py

PR #103: fix(UI): fix missing require

PR #104: refactor(YHV1): GXT labels

Not tested in Legacy

YHV1:

  • Refactor to utilize in-game GXT translations where available and set up for adding more heists
  • Mirror CasinoPacino in checking for required property ownership for Cayo

YRV3:

  • Fix Fill Supplies due to incorrect global on Enhanced

debug_ui:

  • Minor ImGui errors

misc:

  • Utilize cached data more

PR #105: fix(misc): miscellaneous fixes

  • Fix Bunker auto-sell.
  • Fix attempts to read property stats too early into session transitions.
  • Extend YRV3's auto-fill delay setting to a maximum of 10 minutes.

Samurai's Scripts v1.8.3

08 Feb 15:18

Choose a tag to compare

Changelog

PR #92: misc

Chores

  • Updated .editorconfig.
  • Removed unsused file.

Features

  • Refactored all business-related commands.
  • Added a button to reload YRV3.
  • YRV3's sidebar labels are now translated by the game so they make sense.
  • Disabled problematic dynamic stances from Stancer.

UI

  • Settings: Added a theme editor.
  • Improved ImGui.Toggle's visibility in light themes.
  • Refactored ImGui.Selectable2 to use colors from the current theme instead of fixed colors.
  • Refactored ImGui.Selectable2 to properly handle wide labels.
  • Refactored Themes.
  • Improved Notification Center and added an option to mute toast notifications.
  • Added a custom bell widget for the notification center. It looks nothing like a bell...
  • Fixed minimum allowed window width and height to prevent breaking the UI's aesthetics.
  • Refactored YRV3's sidebar from fixed to dynamic width.

Note: The large number of changed files is caused by changes in line endings from CRLF to LF.

PR #93: fix(compat): Enhanced Memory quickfix

Fixes:

  • Memory.lua will now check API version and scan the appropriate addresses

Currently, running SSV2 using YimLuaAPI on Enhanced will throw a fatal memory error in console and fail to set the game version variables properly, resulting in some modules like YRv3 being unable to load.

PR #94: refactor(ImGuiExt): refactor notification widget

  • Replace the hideous "bell" with a simpler widget.
  • Update Contributing.md
  • Update screenshot to reflect the most recent UI changes.

PR #95: fix(Python): normalize line endings

PR #97: feat(compat): Improve base YimLuaAPI/Enhanced support

IMPORTANT: Requires at least YimLuaAPI ac1ed75 for tunables to work. (thanks @tupoy-ya)

  • Add a few API checks to selectively block known broken features on Enhanced
  • Alter some GUI spacing due to new ImGui bindings
  • Fix MCT on YLAPI/Enhanced
  • Fix non-critical ImGui errors
  • Few typos

PR #98: fix: ImGui errors, refactoring, and other minor fixes

  • Add DEBUG toggled text in GUI
  • Rearrange Casino Heist UI to avoid being cut off in default UI
  • Correct update_offsets indentation
  • Refactor casino_ui and keybinds_ui

PR #99: fix(compat): fix YimLuaAPI compatibility issues

Compatibility

  • Fix ImGui crashes.
  • Add a BeginChild wrapper.
  • Add an auto-generated weapon data table so we no longer have to rely on the weapons namespace.
  • Remove deprecated ImGui.Columns from YimActions UI so it stops crashing in YimLuaAPI.

Python

  • Move helper scripts into a /dev subfolder to avoid confusion.

Samurai's Scripts v1.8.2

01 Feb 20:24
62f58fb

Choose a tag to compare

Changelog

Important

This is a breaking change
To install this update, please remove the previous version completely and then install the new version.

PR #84: CI(Release): changelog heading

  • Remove the version number from the heading and use H2.

PR #86: refactor(YRV3): refactor businesses into objects

  • Refactored businesses into objects.
  • Moved Nightclub from the safes tab into its own tab.
  • Added business hubs (nightclub cargo) with production triggers.
  • Simplified YRV3's main UI to prevent crashes.

closes #85

PR #87: chore: update screenshot

PR #88: feat(YRV3): refactor more businesses

  • Refactored every remaining business into an object.
  • Added more features to SalvageYard and merged it into YRV3.

PR #89: chore(codebase) code cleanup

PR #90: fix(misc): miscellaneous fixes

YRV3

  • Do not render factory features if the business has not been setup.
  • Fix warehouse autofill using wrong integer index.
  • Refactor: Add an update method to businesses and let them handle updating themselves.
  • Throttle business update tick in main thread.
  • Replace problematic asserts in the Warehouse module with simple if statements.
  • Do not populate Nightclub hubs if the player does not own a business hub.

GUI

  • Always default to the first tab in the side bar.
  • Persist previous tab between category switches.
  • Fix text wrapping.

PR #91: fix(require): fix broken requires

BREAKING CHANGE

  • Remove parent folder name from a few require paths.
  • Fix early returns in YRV3 nightclub data initialization function not setting a boolean flag which causes YRV3 to stay in a loading state forever.
  • Append breaking change notice to the changelog body when applicable.
  • Remove unused files.