Jump to content

CaptPatrick01

Members
  • Posts

    18
  • Joined

  • Last visited

Posts posted by CaptPatrick01

  1. Eurekas were had! I found out how to add systems to the [/inventory upgrade] spawner

    Look at lib\cmd\upgrades.lua. you'll find strings that essentially go: {function (str) return str:find("^{SEARCH WORD}") end, "{NAME OF UPGRADE found in the systems folder}", "{<<<repeat last}"},

     

    As an example, I managed to get it to spawn the XSTN-Ks by adding these to the list

    	{function (str) return str:find("^teleporterkey1") end, "teleporterkey1", "teleporterkey1"},
    {function (str) return str:find("^teleporterkey2") end, "teleporterkey2", "teleporterkey2"},
    {function (str) return str:find("^teleporterkey3") end, "teleporterkey3", "teleporterkey3"},
    {function (str) return str:find("^teleporterkey4") end, "teleporterkey4", "teleporterkey4"},
    {function (str) return str:find("^teleporterkey5") end, "teleporterkey5", "teleporterkey5"},
    {function (str) return str:find("^teleporterkey6") end, "teleporterkey6", "teleporterkey6"},
    {function (str) return str:find("^teleporterkey7") end, "teleporterkey7", "teleporterkey7"},
    {function (str) return str:find("^teleporterkey8") end, "teleporterkey8", "teleporterkey8"},

     

    I will not try spawning them with a level lower than legendary though. Don't want to risk yerg-ing anything on my end mid-testing ;D.

     

    Other snippets for the newly released vanilla systems:

    {function (str) return str:find("^loot") end, "lootrangebooster", "lootrangebooster"},
    {function (str) return str:find("^shieldimp") end, "shieldimpenetrator", "shieldimpenetrator"},
    

     

    Good for DarkPaapi's Unique Xsotan Keys mod, now you don't have to type a long string of code and have to manually change the seed everytime if you want to try them.

     

    so i added the booster and impenetrable code to the lib but i still cant spawn them is there some other code i have to modify?

     

    Did you check the upgradegenerator.lua?

    UpgradeGenerator.add("data/scripts/systems/shieldimpenetrator.lua", 1)

    and

    UpgradeGenerator.add("data/scripts/systems/lootrangebooster.lua", 1)

    Should be listed there. If not, it is out of date, but should be rectified by adding them in. Also check the upgrades folder to see if the files are there.

  2. No idea what cargo shuttle is doing in a weapons list, but this is the list version i'm currently using. Works for all current weapon types afaik.

    Pretty sure would need something different for torpedoes or cargo shuttles, given i'm almost certain they're part of a different enum.

    {function (str) return str:find("^[cC]ha") end,  0, "ChainGun"},
    {function (str) return str:find("nse[cC]") end,  1, "PointDefenseChainGun"},
    {function (str) return str:find("nse[lL]") end,  2, "PointDefenseLaser"},
    {function (str) return str:find("^[lL]as") end,  3, "Laser"},
    {function (str) return str:find("^[mM]in") end,  4, "MiningLaser"},
    {function (str) return str:find("^[pP]la") end,  5, "PlasmaGun"},
    {function (str) return str:find("^[rR]oc") end,  6, "RocketLauncher"},
    {function (str) return str:find("^[cC]an") end,  7, "Cannon"},
    {function (str) return str:find("^[rR]ai") end,  8, "RailGun"},
    {function (str) return str:find("^[rR]ep") end,  9, "RepairBeam"},
    {function (str) return str:find("^[bB]ol") end,  10, "Bolter"},
    {function (str) return str:find("^[lL]ig") end,  11, "LightningGun"},
    {function (str) return str:find("^[tT]es") end, 12, "TeslaGun"},
    {function (str) return str:find("^[fF]or") end, 13, "ForceGun"},
    {function (str) return str:find("^[sS]al") end, 14, "SalvagingLaser"},
    {function (str) return str:find("^[pP]ul") end,  15, "PulseCannon"},
    {function (str) return str:find("^[aA]nt") end,  16, "AntiFighter"},
    

     

    I tried spawning the Cargo Shuttle thing, the game gave me an anti-fighter turret. The flak one.

  3. Eurekas were had! I found out how to add systems to the [/inventory upgrade] spawner

    Look at lib\cmd\upgrades.lua. you'll find strings that essentially go: {function (str) return str:find("^{SEARCH WORD}") end, "{NAME OF UPGRADE found in the systems folder}", "{<<<repeat last}"},

     

    As an example, I managed to get it to spawn the XSTN-Ks by adding these to the list

    	{function (str) return str:find("^teleporterkey1") end, "teleporterkey1", "teleporterkey1"},
    {function (str) return str:find("^teleporterkey2") end, "teleporterkey2", "teleporterkey2"},
    {function (str) return str:find("^teleporterkey3") end, "teleporterkey3", "teleporterkey3"},
    {function (str) return str:find("^teleporterkey4") end, "teleporterkey4", "teleporterkey4"},
    {function (str) return str:find("^teleporterkey5") end, "teleporterkey5", "teleporterkey5"},
    {function (str) return str:find("^teleporterkey6") end, "teleporterkey6", "teleporterkey6"},
    {function (str) return str:find("^teleporterkey7") end, "teleporterkey7", "teleporterkey7"},
    {function (str) return str:find("^teleporterkey8") end, "teleporterkey8", "teleporterkey8"},

     

    I will not try spawning them with a level lower than legendary though. Don't want to risk yerg-ing anything on my end mid-testing ;D.

     

    Other snippets for the newly released vanilla systems:

    {function (str) return str:find("^loot") end, "lootrangebooster", "lootrangebooster"},
    {function (str) return str:find("^shieldimp") end, "shieldimpenetrator", "shieldimpenetrator"},
    

     

    Good for DarkPaapi's Unique Xsotan Keys mod, now you don't have to type a long string of code and have to manually change the seed everytime if you want to try them.

  4. Hello. I wish to ask about something regarding sound effects. In the SFX folder, there are all the sound effects/music utilized by the game. But right now it is the sound effects that I am looking at.

    Is there a way to expand the amount of sounds that can be triggered by the game? Like adding an impact_shield4, 5, and 6.wav? I imagine that in an .lua somewhere it will list a library of sounds, or a bit of math.random trickery to tell the game to {play these sounds} when {thing} happens. But have been unable to find it. Is it possible to do this? Or is it just something hardcoded?

  5. Is it possible to spawn in Xsotan Artifacts using this mod? I tried but it just says "Could not identify upgradeScript: teleporterkey1.lua"

     

    EDIT (To avoid Double-Posting): BTW, managed to add Pulse Cannons to the Turret WeaponType spawn list.

    Just add

    {function (str) return str:find("^[pP]ul") end, 13, "PulseCannon"},

    to scripts/lib/cmd/weapons.lua

    and then change line 82 of inventory.lua from "...tonumber(w), 12" to "...tonumber(w), 13" so that it adds it to the search list.

  6. I can't help but notice the stack traceback pointing to autoresearch.lua line 7.

    So I went to check and it is one big line of code for creating the interface. Kind of hard to see what part of it that it is pointing to.

     

    Do they have to be in a single line? Or were they just not separated at each end?

    Could be a red herring, but i'll do a little experimenting.

     

    EDIT: Still says line 7, but now the traceback in the researchstation.lua points to 451 now. Same line of code as the one in 458

    Autoresearch.lua must've been a red herring then.

     

    Let us know when it's fixed. I've spent up to an hour with the common quality items alone researching manually ever since the mod broke. Would love to see this back in action again.

  7. After I complete a distress call mission, or rescue a freighter that jumped into the system from pirates, they shouldn't remain in the system just sitting there, especially if they belong to a hostile faction, turning them into a tempting target for this 10,000 omicron ship that had just otherwise saved it. And even more especially with the hidden timer in the background slowly counting down to an impending pirate/Xsotan attack.

     

    Give them a little common sense. Once they've been saved, they should book it outta there rather than risk being next on the menu.

  8. I have an idea regarding the ship's upgrade slots to take advantage of the new ability to favorite inventory items.

     

    What if we can right-click an empty system upgrade slot to turn it variable, then assign hotkeys to it (for specific upgrades in the favorites list) to hotswap between them quickly without having to open the ship window?

     

    I do see some unsightly exploits however involving the 25% recharge shield boosters... perhaps those could have their ability be given a 5 or 10 minute lockout period when first or newly equipped, if there aren't measures in place already.

  9. I'm more impartial to the Pirate Warlord mod. But with so many changes to the API since then, nothing here works, or has since been made redundant by the vanilla game. Tried reverse-engineering the Warlord quest trigger in the old Military Outpost .lua to insert it into the list given by the new Military Outpost's .lua, but only wound up preventing the station from spawning at all instead.  ::)

     

    I shall await the day that these mods are picked up again.

  10. Huh... I wasn't aware the crew salary wasn't actually supposed to be as high as it is. I always assumed the auto-payment system just deferred the payments 3 times for some reason (as dumb as that sounds). Then again, that's probably because I have never gotten very far in the game before the dreaded SP inventory loading crash happens (because Research Stations are just too darn rare). So I never experienced roadblockingly huge salary payments firsthand, just 150,000 at most, which I easily made up through pirate-hunting, or selling force-turrets.

  11. Hello, when this happened to me too, I found this thread, but when I tried the solution given:

     

    C:\Users\Pat20>D:\GameClients\Steam\steamapps\common\Avorion\bin\AvorionServer.exe --galaxy-name Eden --server-name "Eden" --max-players 10 --use-steam-networking 1
    Installed exception handler: 8289776
    Previous: 8788672
    Enabled Traces:
    Avorion server Beta 0.11 r7857 running on Windows 8.1+ starting up in "C:\Users\Pat20\AppData\Roaming\Avorion\galaxies\Eden"
    CPU: AuthenticAMD 8 Cores
    name: Eden
    seed: jHjhRUhINf
    port: 27000
    max online players: 10
    save interval: 600
    broadcast interval: 5
    max loaded sector time: 300
    weak update: yes
    worker threads: 7
    generator threads: 2
    difficulty: Beginner
    infiniteResources: no
    collision: 0.25
    access list: Blacklist
    public: no
    authentication: no
    listed: no
    steam networking: yes
    administrators: 'admin'
    could not load script '""':
    
    [string "..."]:4: module 'factionsmap' not found:
            no field package.preload['factionsmap']
            no file 'D:\GameClients\Steam\steamapps\common\Avorion\bin\lua\factionsmap.lua'
            no file 'D:\GameClients\Steam\steamapps\common\Avorion\bin\lua\factionsmap\init.lua'
            no file 'D:\GameClients\Steam\steamapps\common\Avorion\bin\factionsmap.lua'
            no file 'D:\GameClients\Steam\steamapps\common\Avorion\bin\factionsmap\init.lua'
            no file '.\factionsmap.lua'
            no file 'data/scripts/lib/factionsmap.lua'
            no file 'D:\GameClients\Steam\steamapps\common\Avorion\bin\factionsmap.dll'
            no file 'D:\GameClients\Steam\steamapps\common\Avorion\bin\loadall.dll'
            no file '.\factionsmap.dll'
    Setting script "" to invalid.
    could not load script '""':
    
    [string "..."]:4: module 'passagemap' not found:
            no field package.preload['passagemap']
            no file 'D:\GameClients\Steam\steamapps\common\Avorion\bin\lua\passagemap.lua'
            no file 'D:\GameClients\Steam\steamapps\common\Avorion\bin\lua\passagemap\init.lua'
            no file 'D:\GameClients\Steam\steamapps\common\Avorion\bin\passagemap.lua'
            no file 'D:\GameClients\Steam\steamapps\common\Avorion\bin\passagemap\init.lua'
            no file '.\passagemap.lua'
            no file 'data/scripts/lib/passagemap.lua'
            no file 'D:\GameClients\Steam\steamapps\common\Avorion\bin\passagemap.dll'
            no file 'D:\GameClients\Steam\steamapps\common\Avorion\bin\loadall.dll'
            no file '.\passagemap.dll'
    Setting script "" to invalid.
    Initializing sector database...
    Initializing faction database...
    Starting up 7 worker threads...
    Loading jumping entities...
    could not load script '""':
    
    [string "..."]:4: module 'sectorspecifics' not found:
            no field package.preload['sectorspecifics']
            no file 'D:\GameClients\Steam\steamapps\common\Avorion\bin\lua\sectorspecifics.lua'
            no file 'D:\GameClients\Steam\steamapps\common\Avorion\bin\lua\sectorspecifics\init.lua'
            no file 'D:\GameClients\Steam\steamapps\common\Avorion\bin\sectorspecifics.lua'
            no file 'D:\GameClients\Steam\steamapps\common\Avorion\bin\sectorspecifics\init.lua'
            no file '.\sectorspecifics.lua'
            no file 'data/scripts/sectorspecifics.lua'
            no file 'D:\GameClients\Steam\steamapps\common\Avorion\bin\sectorspecifics.dll'
            no file 'D:\GameClients\Steam\steamapps\common\Avorion\bin\loadall.dll'
            no file '.\sectorspecifics.dll'
    Setting script "" to invalid.
    An exception occurred: Script 'data/scripts/sector/sector.lua' not found. Tried the following paths:
    data/scripts/sector/data/scripts/sector/sector.lua
    data/scripts/sector/data/scripts/sector/sector.lua.lua
    data/scripts/sectordata/scripts/sector/sector.lua
    data/scripts/sectordata/scripts/sector/sector.lua.lua
    data/scripts/events/data/scripts/sector/sector.lua
    data/scripts/events/data/scripts/sector/sector.lua.lua
    data/scripts/eventsdata/scripts/sector/sector.lua
    data/scripts/eventsdata/scripts/sector/sector.lua.lua
    data/scripts/sector/sector.lua
    data/scripts/sector/sector.lua.lua
    data/scripts/data/scripts/sector/sector.lua
    data/scripts/data/scripts/sector/sector.lua.lua
    data/scriptsdata/scripts/sector/sector.lua
    data/scriptsdata/scripts/sector/sector.lua.lua

    Needless to say, it didn't work. It could not find the files required to run a dedicated server using my SP galaxy, even though they are where they should be.

    I'd appreciate the help.

×
×
  • Create New...