Tweaking weapons help request

Everything about mods can be found here.

Tweaking weapons help request

Postby stardust » 25 May 2018, 03:51

Hi all, two quick questions for you.

1. I am working on a little unitpack for myself, and am tweaking some unit settings. I have two Cybran units that use beams. I've copied all the files over, changed where all the settings point to in the unit's BP file, but when I go to have said unit test-fire all its weapons, the beams don't render. The muzzle and impact effects work, and the damage seems to be taken into effect as well, but... no beam???

2. I also have another couple amphibious structures that ONLY attack units on the water. A test suppression fire against a land target or unit does nothing. I don't see anything in the BP file code that flags this sort of behavior... anyone have any thoughts? I'd like to change it so that they will fire on anything not flying or submerged. EDIT: Fixed problem #2, so disregard this second one.
User avatar
stardust
Avatar-of-War
 
Posts: 53
Joined: 23 May 2018, 01:25
Location: Canada, eh.
Has liked: 3 times
Been liked: 0 time
FAF User Name: stardust2101

Re: Tweaking weapons help request

Postby Uveso » 25 May 2018, 07:41

Hi stardust,

it's hard to say what's going wrong with your Beam. Without more information we can't help here.
Mostly this happens if you have wrong filepaths or a simple typo.

Does the error log not show any errors ???
User avatar
Uveso
Supreme Commander
 
Posts: 1157
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 41 times
Been liked: 172 times
FAF User Name: Uveso

Re: Tweaking weapons help request

Postby stardust » 26 May 2018, 02:12

I got nothing. No issues or anything. I'm absolutely mystified.

Another problem I've stumbled across - another unit, when it fires, does not emit the firing sound. I've triple-checked all the files and references and filepaths and have no clue. And when I tried changing the firing sound, the unit up and vanished from my build list!
User avatar
stardust
Avatar-of-War
 
Posts: 53
Joined: 23 May 2018, 01:25
Location: Canada, eh.
Has liked: 3 times
Been liked: 0 time
FAF User Name: stardust2101

Re: Tweaking weapons help request

Postby Uveso » 26 May 2018, 16:41

Hello stardust,

well with no error message its always hard to track those errors.

If you like, .zip the unit and i take a look at it.
User avatar
Uveso
Supreme Commander
 
Posts: 1157
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 41 times
Been liked: 172 times
FAF User Name: Uveso

Re: Tweaking weapons help request

Postby stardust » 27 May 2018, 16:55

It's the Cybran Reaper battlecruiser. I've attached its stats file. I think if there are ANY changes I made to this, it's to change "Escort ship" to "Battlecruiser," and change path info.
Attachments
BRS0304_unit.bp
(31.87 KiB) Downloaded 12 times
User avatar
stardust
Avatar-of-War
 
Posts: 53
Joined: 23 May 2018, 01:25
Location: Canada, eh.
Has liked: 3 times
Been liked: 0 time
FAF User Name: stardust2101

Re: Tweaking weapons help request

Postby Uveso » 28 May 2018, 17:53

blueprint looks good, maybe wrong weapon path inside unit script file ?

If you post the full unit folder as zip its easier to debug and test the unit.
User avatar
Uveso
Supreme Commander
 
Posts: 1157
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 41 times
Been liked: 172 times
FAF User Name: Uveso

Re: Tweaking weapons help request

Postby stardust » 29 May 2018, 13:21

Hmm, I'd zip and attach both but the site says that 700+ kb is a bit too large for it to upload. >.<

I'll look into this in greater detail when I get home from work tonight.
User avatar
stardust
Avatar-of-War
 
Posts: 53
Joined: 23 May 2018, 01:25
Location: Canada, eh.
Has liked: 3 times
Been liked: 0 time
FAF User Name: stardust2101

Re: Tweaking weapons help request

Postby stardust » 30 May 2018, 03:55

AN UPDATE.

Turns out one half of my remaining problem was a bad filepath. But the Aries frigate, the remaining ship, has now disappeared from build queues. Before I fixed it, its beam still did not render, but muzzleflash and impact did.

Arguably speaking, does the game NEED the /mods/[modname]/ path throughout, or can I just truncate it to /units/whatever or /effects/whatever or /projectiles/whatever and have it still work? I ask before I try it in case any people much more familiar with the game code than me have tried it and broken things with it.
User avatar
stardust
Avatar-of-War
 
Posts: 53
Joined: 23 May 2018, 01:25
Location: Canada, eh.
Has liked: 3 times
Been liked: 0 time
FAF User Name: stardust2101

Re: Tweaking weapons help request

Postby Uveso » 30 May 2018, 16:40

The default file path is leading to the original files of the game.
If you want to address files inside the mod directory you need a "/mod/[modname]/" filepath.
User avatar
Uveso
Supreme Commander
 
Posts: 1157
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 41 times
Been liked: 172 times
FAF User Name: Uveso

Re: Tweaking weapons help request

Postby stardust » 31 May 2018, 00:16

OK, I'll leave the filepaths alone unless they are pointing to the wrong spot.

Also fixed a problem I had with a unit having disappeared :)
User avatar
stardust
Avatar-of-War
 
Posts: 53
Joined: 23 May 2018, 01:25
Location: Canada, eh.
Has liked: 3 times
Been liked: 0 time
FAF User Name: stardust2101


Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest