Coder Social home page Coder Social logo

Executing Lua file from console about bg3se HOT 4 CLOSED

norbyte avatar norbyte commented on August 24, 2024
Executing Lua file from console

from bg3se.

Comments (4)

Norbyte avatar Norbyte commented on August 24, 2024

Hi,

The extender can load unpacked files from the Data directory (same way the game does), so you don't need to build a .pak for development.
The reset console command reloads all Lua files, and for unpacked files it'll load the most recent version found on disk.

from bg3se.

gallexme avatar gallexme commented on August 24, 2024

@Norbyte
hey do you mind providing a example?
i added this to the modsettings.lsx

<node id="ModuleShortDesc">
                            <attribute id="Folder" type="LSString" value="MyMod"/>
                            <attribute id="MD5" type="LSString" value=""/>
                            <attribute id="Name" type="LSString" value="MyMod"/>
                            <attribute id="UUID" type="FixedString" value="e439f487-3c71-467f-95ee-945b317dca3a"/>
                            <attribute id="Version64" type="int64" value="36028797018963968"/>
                        </node>
                    </children> 

made a folder in BG3/Data called MyMod
Folder Structure is


steamapps/common/Baldurs Gate 3
❯ ls Data/**/*.* | where {|x| not $x.name ends-with .pak} | where name =~ MyMod
╭────┬─────────────────────────────────────────────────────────────────────┬──────┬──────────┬────────────────╮
│  # │                                name                                 │ type │   size   │    modified    │
├────┼─────────────────────────────────────────────────────────────────────┼──────┼──────────┼────────────────┤
│  0 │ Data/MyMod/Mods/MyMod/ScriptExtender/Config.json                    │ file │     83 B │ a day ago      │
│  1 │ Data/MyMod/Mods/MyMod/ScriptExtender/Lua/BoostComponentTests.lua    │ file │  1.7 KiB │ 23 minutes ago │
│  2 │ Data/MyMod/Mods/MyMod/ScriptExtender/Lua/BootstrapClient.lua        │ file │  1.1 KiB │ 23 minutes ago │
│  3 │ Data/MyMod/Mods/MyMod/ScriptExtender/Lua/BootstrapServer.lua        │ file │  5.8 KiB │ 23 minutes ago │
│  4 │ Data/MyMod/Mods/MyMod/ScriptExtender/Lua/CharacterComponentTests.lu │ file │ 14.5 KiB │ 23 minutes ago │
│    │ a                                                                   │      │          │                │
│  5 │ Data/MyMod/Mods/MyMod/ScriptExtender/Lua/CharacterTests.lua         │ file │  9.2 KiB │ 23 minutes ago │
│  6 │ Data/MyMod/Mods/MyMod/ScriptExtender/Lua/ComponentTests.lua         │ file │  1.3 KiB │ 23 minutes ago │
│  7 │ Data/MyMod/Mods/MyMod/ScriptExtender/Lua/ItemComponentTests.lua     │ file │ 10.2 KiB │ 23 minutes ago │
│  8 │ Data/MyMod/Mods/MyMod/ScriptExtender/Lua/ResourceTests.lua          │ file │ 12.4 KiB │ 23 minutes ago │
│  9 │ Data/MyMod/Mods/MyMod/ScriptExtender/Lua/StatTests.lua              │ file │  6.0 KiB │ 23 minutes ago │
│ 10 │ Data/MyMod/Mods/MyMod/ScriptExtender/Lua/TestHelpers.lua            │ file │  3.1 KiB │ 23 minutes ago │
│ 11 │ Data/MyMod/Mods/MyMod/meta.lsx                                      │ file │  2.2 KiB │ a day ago      │
│ 12 │ Data/MyMod/Mods/MyMod/modsettings.lsx                               │ file │  1.5 KiB │ a day ago      │

yet it doesnt work, even the modsettings.lsx gets overwritten each time in the playerprofile folder, i must be missing something stupid, really would appreciate a example

from bg3se.

Norbyte avatar Norbyte commented on August 24, 2024

Mod should be in Data/Mods/MyMod, not Data/MyMod/Mods/MyMod

from bg3se.

gallexme avatar gallexme commented on August 24, 2024

Perfect, thanks!, and the modsettings.lsx reset was caused by guid mismatch i think, thank you very much!

from bg3se.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.