Jump to content

Serenity424

Members
  • Posts

    15
  • Joined

  • Last visited

Serenity424's Achievements

0

Reputation

  1. So, reworked the TurretFactory to create big weaponry , as of now only the laser is added and just the main proprieties (size/range/damage) I'm looking forward to add more weapons to the list. For now the biggest laser look like this (it's in front of the ship which you have the stats) It's 300as size , I need to rework the propriety upgrade schematics to have something bit more realistic.
  2. Hello guys, I'm still working on the big guns mod but I fail to change the projectile color with an elegant way ie something else than hardcoding :/ Any idea ? I'm working from the turretfactory.
  3. WORK RESUMED Sooo, found a way around using the rarity this time, it does work I'll need to make a mod for each weapons (at least the main types) and rework the ui to help. But you can have pretty big weapons, to have to note the ship has 300M Hp +, the plat where the coax big gun is mounted is 100*100
  4. Okay someone need to point out the problem here I'm giving up, I looked into again to find who/what what bugging the mod. If I let a if loop in the turret making function it will never build a turret, like if I let only the if loop without instructions in it, and even turret that does not trigger the IF. If I try to printlog anything in the "buildturret" function it's just like the game is blind to this, like nothings happens, wtf ?
  5. Yeah I checked ingame (client log ?) and server log nothing appear, if I cut out the "displayChatMessage" the code will execute all the way down to removing the ingredients but not making the turret and it doesn't make any sense :/ like : -If the message function make the code go wrong why no sign of error ? -Why does the code just stop like this, like there is no break, return of any shouldn't it bug ? -And the maketurret work since it display the turret with the value I gave it. So still searching of why, but without anything to work with I'm stuck :/
  6. So here is a catch I have no idea why, displayChatMessage('good god3', 'the code', 0) if missing then sendError(player, "You need more %s."%_t, missing) return end local canPay, msg, args = buyer:canPay(price) if not canPay then sendError(player, msg, unpack(args)) return end displayChatMessage('good god2', 'the code', 0) local errors = {} errors[EntityType.Station] = "You must be docked to the station to build turrets."%_T errors[EntityType.Ship] = "You must be closer to the ship to build turrets."%_T if not CheckPlayerDocked(player, station, errors) then return end -- pay receiveTransactionTax(station, taxAmount) displayChatMessage('good god1', 'the code', 0) buyer:pay("Paid %1% credits to build a turret."%_T, price) -- displayChatMessage(ingredient,'the code',0) for i, ingredient in pairs(ingredients) do local g = goods[ingredient.name]:good() ship:removeCargo(g, ingredient.amount) -- displayChatMessage('good god', 'the code', 0) end displayChatMessage('good god', 'the code', 0) local turret = makeTurret(weaponType, rarity, material, ingredients) displayChatMessage(' bad god', 'the code', 0) buyer:getInventory():add(InventoryTurret(turret)) invokeClientFunction(player, "refreshUI") As you can see I put more display stuff, and nothing happen, like the message thingy make avorion refuse to execute anything apparently, like nada. I did few test with basic turret (no mod implication) and right now when I try to make a turret nothing happen and no bug. So why ? here is the log of the server, where should appear something, anything 2018-09-18 00-14-21| Starting thread [LoadingScreen Plan]... 2018-09-18 00-14-21| Started thread [LoadingScreen Plan] with id 23 2018-09-18 00-14-21| <Server> Player XXXXX joined the galaxy 2018-09-18 00-14-21| Player XXXXX joined the galaxy 2018-09-18 00-15-54| <> You paid 575403456 credits to pay the crew of B. 2018-09-18 00-15-54| You paid 575403456 credits to pay the crew of B. 2018-09-18 00-15-54| <> The crew of your ship 'B' was paid. 2018-09-18 00-15-54| The crew of your ship 'B' was paid.
  7. So I found the culprit but I have no idea of why, here is the thing buyer:pay("Paid %1% credits to build a turret."%_T, price) for i, ingredient in pairs(ingredients) do local g = goods[ingredient.name]:good() ship:removeCargo(g, ingredient.amount) displayChatMessage('good god', 'the code', 0) end displayChatMessage('good god', 'the code', 0) local turret = makeTurret(weaponType, rarity, material, ingredients) displayChatMessage(' bad god', 'the code', 0) buyer:getInventory():add(InventoryTurret(turret)) invokeClientFunction(player, "refreshUI") it's in the function when you clic on "buy" now if I remove the first display call (btw this work nice for display ) it take me the ingredients and the money but turret is nowhere to be found. Now if I let it, it will take only the first kind and stop but no message nor turret. There is no return, no bug logged in the server so why ?
  8. Thanks for the feed back, yeah since I haven't spawned one yet I haven't any idea of how the size reflect on the ship. If you talk about custom turret I haven't tried to build one (like on the ship editor UI) dunno how this work. I haven't found a proper "display" function to send a chat message for debugging purposes so don't really know what's happening in the if loops. I tried (after trying to build a big one) to build a normal one same thing happen no turret :/ . So yeah for the stats I just tried which property can be changed and which is not, the doc is not completely accurate or I missed something.
  9. Inserting a quick question here, your code mean on that the function MyModNamespace.onBlockDamaged(objectIndex, blockIndex, inflictorId, damage, damageType) local entity = Entity(objectIndex) entity:heal(damage, blockIndex, vec3(), entity.factionIndex) end overwrite the original callback ? How do you know (or where) the original content of the function ?
  10. Hello guys , Working on the creation of bigger guns with the factory but there is a catch, it display correctly the gun that should be purchased but when I try to create it it don't add to my inventory :'( had to wreck many systems to get the components for it. Except for the checkbox initialization and changed the ingredients amounts there is nothing too wild that would prevent the turret from being made, and the server doesn't show errors, someone have an idea ?
  11. Torpedoes modifications And here are the pics of the torpedo I added. How to install ? just overwrite the torpedo generator file and don't forget to keep a copy of the original. To do : Fine tune the torpedoes and add an effect which look like the type of torpedo Add AOE damages Pictures
  12. Hello guys, I'm trying to implement two features, "real" thermonuclear torpedoes and block explosion upon destruction (energy container) But I struggle on two things, first for the torpedoes but is also useful for the other, how can I make explosion impact all the ship in the area, I changed explosionsize of the torpedoes but nothing seems to do it so far :/ And for the block particularly, how can I spawn an explosion (the ones of the torpedoes would allow the "waves" which are pretty nice) ? Thanks guys EDIT : Founds that I should tweak somewhere with the callbacks but I don't really understand how to use it , like there is the lines Entity():registerCallback("onShotHit", "onShotHit") Entity():registerCallback("onCollision", "onShotHit") But I don't find what's done on callback
  13. So, I went for the shield at first (I'll post the chunk of code about shipyard later) what I found : you can change the color in the shield.frag (in the shader folder) prettry straight forward http://www-db.deis.unibo.it/courses/TW/DOCS/w3schools/colors/colors_picker.asp-colorhex=F08080.html is a good way to change the color. But seems others colors can create a but, i'm looking into that.I added this https://www.avorion.net/forum/index.php/topic,3263.0.html and I'm trying to find who is responsible for the shield modification upon impacts, think it's around line 50, not really sure tho. Edit : Ship color ain't working correctly, It should have been red , it's green ... still can be changed , it's easy and straight forward too, as soon as you are on the file it's easy to find. Edit2 : this time it's better but I need to work on the smoothing because it look like the ship blink when the shields appear. Edit2 : this wwebsite may be better http://www.december.com/html/spec/colorper.html
  14. Hello fella, If you want to help I'll write where I'm stuck on the ideas I played a bit of this cubic game lately and as rts player/code geek I went looking in the LUA to see what can be tweaked. At first I went there for turrets you know .... But as I used other modification (kinda scavenged some mod really) I decided to make a post where I could share my tweaks. For now there is no files just the idea/tweaks done. Done : -Improve turrets number -Improve loot collection range -Improved turret range (still work to be done because it's not work for all the turrets sources only buying and crafting) -Improved hyperspace cooldown reduction (lazy me..) -Added more strength to pirates and Xsotans (I play in creative so it felt a bit too easy) -Added the advancedshipyard but I took of the "take time to build a ship" thingy Now what I plan to work on : -Create a base turret (both kinds) and it goes with the size of the ship, which mean big ship , big base turret number. The upgrade would "only" add xx% of armed or unarmed turret for you to specialize the ship , but no more 10 turret on a capital ship or 600 on the frigate ..... Haven't looked so far so no problems -I came across a mod which made the shield less bright, i planed on tweaking this one to have a shield which shows vanilla brightness only when and where it's shot (like a good scifi one) Added the mod for less brightness some fine tuning for the color and effect (maybe a color depending on the material?) but I don't know how to locate weapons impacts on the shield -Wanted to also add to shield the (front, back, sides) shield focus but I thinks it's a bit hard Haven't looked so far so no problems -There is existing mods for advanced commands, plan to add more inspired from turret orders like attack torpedoes and figther and also formations, like one you could save your own personal formation you know . Haven't looked so far so no problems -Had in the idea to make generators hits (or energy containers) a bit more realistic as it goes boom when a railgun hit your 23TW generator bloc. Or like if it's just a part of your ship you got damages like a range of explosion depending on the size of the lost bloc. (Starwars fan need to create some death star with cooling vents on the workshop aye) I know where to add it, it's when the game decide to make wreckage or not of the block but I don't know what function would create a explosion there -I also want a real thermonuclear torpedos , like one which go kaboom for real, and perk of space don't even need to make a sound. Testing phase -Maybe if I could, that collision first goes on the shield then on the ship, like you have "impenetrable shields" which stop a torpedo or a blast of cannon but an asteroid you hit at 4km/s will rip your face ... I want to use the asteroid field as a shield/projectiles for a big entrance you know. Haven't looked so far so no problems -Sector entry point, it feels like cheat that there is only one freaking point of entry, you put your space complex 150km from that point and your fleet in between and you're save for life. just need to switch sectors to go on your city. Haven't looked so far so no problems -I saw some auto docking mod, which is a nice feature. Haven't looked so far so no problems -Maybe play with unspeakable weapons like a crazy laser beam which can cut your destroyer in half but take 300 spots 2k crew and a shit load of energy plus you know 50sec to shoot again of something. Haven't looked so far so no problems -Maybe faster rockets (from the turrets not torpedoes) like it's nice a bit faster would seems more nice and realistic. Haven't looked so far so no problems -Sellers with a slider on the side and way more turrets/upgrades Haven't looked so far so no problems -hardcore to do I think but worth the lookup, a frigate attachable to your ship, like a real carrier with like frigates , cargo, miners this kind. Late on the game you have huge fleet but you'd like something else than the drone. An other way is to make possible to improve the drone as you advance in the game like 25M credits to change the drone and it's limited to like 1/100th of your bigger ship (numbers not defined) Haven't looked so far so no problems -Maybe a upgrade for distance commerce, like you have a legendary 20km fake docking , so no need to bring your huge capital ship that throw the poor station in another sector with a wrong mouse mouvement... Haven't looked so far so no problems -Another feature also could be to tweak the shipyard as you get a ship (frigate, corvette) loaded with upgrades and turrets but it cost like a awful price to do so like 1000 time the turret seller price. It would be nice for creative and like end game when you'll want to go against my revamped Xsotans Haven't looked so far so no problems -As said I want to add the capability to the "bad guys" to match you long enough so you can really enjoy a scaled battle where you have to engage all your forces. Could be on the form of an event triggered by the Guardian death where like some sectors in the centers are filled with Xsotans sectors but like city you don't want to attack without preparation and each of them enable Attacks events and each X times a new sector is conquered and so on, so basically you kill the big one and that trigger a massive conter action you'll need to stop if you want to stay in the center. I'm gonna let guys that like to create lore to find a nice sweet story. Haven't looked so far so no problems -May implement the only one factory, the asteroid mover, and some others mods I come across the forum. Haven't looked so far so no problems As of today that's all I have in mind, I'm pretty sure as I fool around in the game or in the code I'll find others idea. You can post yours too it may create others ideas. Final point and a bit disappointment source (sorry), as I'm busy IRL nothing insure i'll finish this ever, but as it may never come as a mod package I'm going to try to post my codes as I write them. For sure I cannot always remember where I scavenged the codes so I don't own the credit for a lot of lines and sorry to the original writes that I don't keep your names in mind.... But it is appreciated ! Have fun and all I also started a thread in reddit :
×
×
  • Create New...