Author Topic: Primary and Secoundary Weaponbanks (need help)  (Read 6626 times)

0 Members and 1 Guest are viewing this topic.

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Primary and Secoundary Weaponbanks (need help)
There's little point in doing that. How are you going to table a ship to have different numbers of weapons in SP and MP without making the entire thing a ****ing nightmare?

The most sensible solution is simply to fix multiplayer after making the changes that break it. That way everyone gets the benefits of the change.

(Assuming the changes do break it. It is a big assumption. That's another reason I'd like the WCS source. I'd like to try their code in an MP game and see if it actually works. Has anyone tried using the WCS executable in FS2?)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: Primary and Secoundary Weaponbanks (need help)
(I'd like to try their code in an MP game and see if it actually works. Has anyone tried using the WCS executable in FS2?)
Won't help a bit, as far as I know multi is disabled code-side, not mod-side. I can give it a quick try to make sure when I go home though.
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Primary and Secoundary Weaponbanks (need help)
I can't do it at the moment but you might be able to get round their restriction using the -startgame, etc options.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: Primary and Secoundary Weaponbanks (need help)
Maybe I could, if all command line flags hadn't been disabled...
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Primary and Secoundary Weaponbanks (need help)
edit the config file. :D
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Re: Primary and Secoundary Weaponbanks (need help)
When I mean command line is disabled, I mean it is disabled. Config files or not. The exe doesn't recognize any command line flag at all, aside maybe from -mod.

EDIT: Unless my memory betrays me. You make me doubt now. I haven't actually got time to test yesterday. Will try to remember tonight.
« Last Edit: July 06, 2012, 02:56:40 am by MatthTheGeek »
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Primary and Secoundary Weaponbanks (need help)
Trust me, messing with the config file works. I once managed to boot up a WCS standalone server that way. **** knows how anyone was going to be able to connect to it. :D
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline Eiswolf

  • 26
Re: Primary and Secoundary Weaponbanks (need help)
Hmmm.... 

I think it is really possible to make Energy Weapons to secondary Weapons they need Energy and not ammunition?

The problem is my project needs more weapons for the Fighter.

there gives fighter's with more then 3 Energy (Primary) Weapons without Missiles (Secondary)

How i can make this? Sorry i can't C++ or other programming speech... ähm no it isn't the true i can CSS and HTML.... :)


I search help for this things:

*invert Energy display in the HUD
*Energyweapons as Secondary Weapons...

Hmmm... i think this is all what i need. I hope a Battletech/Aerotech Fan can help my or a other one...

the hope dies last :)

Aerotech Alpha v 0.1 download here ---> http://www.hard-light.net/forums/index.php?topic=87385.0

It plays in Battletech Univers

Aerotech Concept click here ---> http://www.hard-light.net/forums/index.php?topic=81572.0

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: Primary and Secoundary Weaponbanks (need help)
To be honest FSO is not a good engine to to a battletech based game, while heat can be simulated to a degree with the energy bar, armour is fixed and there is no way to simulate the weight system, your best bet will be to use fixed load outs (pre 3050 is probably easiest justification) in which case you are usually looking at 2 cannon types and 2 missile types at the most and you can use multiple fire poins and bank ammo to get the effect you need
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Primary and Secoundary Weaponbanks (need help)
unless you use scripting of course. nothing really prevents you from writing your own fire control code. much the way i fire weapons on my ucavs. thing is though i dont think we have access to firepoints, so you will have to use your own stand in replacement. you can also hook in to weapon selection, use a bunch of dummy weapons to represent weapon groups. when these are selected or fired just create the real weapons at their actual fire points. based on loadout and groupind data. you can simulate all the articulated joints of a mech in this way as well and ajust the weapon aim accordingly.

i actually think the major source of headaches with a mech game will be walking animations and colliding with the ground properly. need some inverse kinematics code to make the animations look right. i wonder if you could adapt the ship landing features to this purpose. id just ray collide the place your mech wants to step with the terrain, then do your ik magic to find the correct joint angles to reach that spot and orientation.

this is one of those things i thought about in detail. really your just better off playing mwll, the graphics are better than any mech game, the gameplay is better than any mech game, you have aerospace vtol and tank/hover options, and it has a large enough fanbase its hard not to get a game on.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Eiswolf

  • 26
Re: Primary and Secoundary Weaponbanks (need help)
Oh... sorry... i think it is a mistake i don´t will make a mechgame... for this is Mechstorm and MekTek or MWLL better ^^ also in Summer 2012 will open a new Mechgame Free to Play the name is "Mechwarrior Online"

I will only make a spacefighter game in the Battletechuniversum but only as Turretsection on Plattforms will take Flakmechs like Rifleman, Jägermech or Archer etc...

The project is ONLY for SPACEWAR not for Groundwar and the Fighter will be only Stockfighters and nothing more.
With or Without a Multiplayergame?  I don´t know but i must see where is the balance...



The Heat is a easy thing:
1st:  in Space is it very cold ;)
2nd: when the Fighterreactor running hot and Shutdown they will crash at the ground? I think it was very expensive for all Units, also they have a fuse they can´t in the fight Shutdown but only the weapons will shutdown...


btt:

Can anyone help me by my problems or can anyone instruct me what i must chance in sourcecode i became this result?

*invert Energy display in the HUD
*Energyweapons as Secondary Weapons...



« Last Edit: July 09, 2012, 11:22:30 am by Eiswolf »
Aerotech Alpha v 0.1 download here ---> http://www.hard-light.net/forums/index.php?topic=87385.0

It plays in Battletech Univers

Aerotech Concept click here ---> http://www.hard-light.net/forums/index.php?topic=81572.0

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: Primary and Secoundary Weaponbanks (need help)
not 100% sure on this as its not an area I work with but the energy gauge inverse should be doable with scripting without needing to mess with the game code.

as for energy consuming secondaries that would be nice to see in the code, as for if it's scriptable I am not sure
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Steam
Re: Primary and Secoundary Weaponbanks (need help)
Eiswolf, I have three questions for you:

How many banks do you want to fire at once? (A single bank is a group of fire points that have the same weapon type attached to them.)

Do you want to be able to adjust each individual bank's firing rates? (For example, a gun bank could have single/group/all firing rates, which fires each fire point sequentially, sequentially in groups, or all at once.)

Do you want to be able to fire a group of banks? (Like in the MechWarrior games, where you have 10 weapon groups that the pilot/gunner can define)
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Primary and Secoundary Weaponbanks (need help)
not 100% sure on this as its not an area I work with but the energy gauge inverse should be doable with scripting without needing to mess with the game code.

as for energy consuming secondaries that would be nice to see in the code, as for if it's scriptable I am not sure

why stop there when you can just code a heat management system proper?
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: Primary and Secoundary Weaponbanks (need help)
not 100% sure on this as its not an area I work with but the energy gauge inverse should be doable with scripting without needing to mess with the game code.

as for energy consuming secondaries that would be nice to see in the code, as for if it's scriptable I am not sure

why stop there when you can just code a heat management system proper?

why create a new element when there is a redundant one already that is close to doing the job already?
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: Primary and Secoundary Weaponbanks (need help)
while were at it lets stick square pegs in round holes and use a hammer to drive screws.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Eiswolf

  • 26
Re: Primary and Secoundary Weaponbanks (need help)
How many banks do you want to fire at once? (A single bank is a group of fire points that have the same weapon type attached to them.)

Yes i know. A question the 3 firepoints at a weaponbank will need 3x energy from the reactor and make 3x Damage from this weapontyp? example: 1x PPC needs 12 Energy/Heat and make 12 Damage with three fire points will the need 36 Energy/Heat and make 36 Damage? When Yes than it was very easy to work with Stockfigthers but what was with the balisitc Primarys? They need 3x more Ammunition when the bank have 3 Fireringpoints?


Do you want to be able to adjust each individual bank's firing rates? (For example, a gun bank could have single/group/all firing rates, which fires each fire point sequentially, sequentially in groups, or all at once.)

Do you want to be able to fire a group of banks? (Like in the MechWarrior games, where you have 10 weapon groups that the pilot/gunner can define)

it wasn´t necessary, this can by balanced by Gunpoints (a weapon with many heat have 1 Firengpoint and a weapon with low heat can fire from more fireingpionts ^^ i think it is okay...)

hmm... but i can make a compromise in the game when my problems can´t solve by everyone but i would not make a new game there was to far away from the original Battletechuniversum...
Aerotech Alpha v 0.1 download here ---> http://www.hard-light.net/forums/index.php?topic=87385.0

It plays in Battletech Univers

Aerotech Concept click here ---> http://www.hard-light.net/forums/index.php?topic=81572.0

  

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: Primary and Secoundary Weaponbanks (need help)
I believe energy and ammo is calculated per fire point so that is all done for you.

firstly you need to work out how many capacity units there are per ton for example you can do 10:1 Capacity:Ton.

in that case in your weapons table you set the MachineGun cargo to 0.05 (200 rounds per ton based on 10 capacity per ton)

Now take a fighter

Variant A has 2 mg and 2 ton MG ammo
you place 2 firepoints on the model attached to the MG weapon bank to represent the fact that there are 2 MG
in the ship table for the MG bank you set the pbank capacity to 20 to represent 2 tons

Variant B has 1 mg and 2 ton MG ammo
Need a second version of the .pof file with 1 firepoint1 on the model attached to the MG weapon bank to represent the single MG
in the ship table create a duplicate ship file referencing the Variant B fighter and keep the capacity 20 for the MG bank.

Variant C has 1 mg and 1 ton MG ammo
Use the Variant B pof file and create a duplicate ships table entry based on Variant B changing the pbank capacity for the bank to 10.

Yes it's crude and creates a number of slightly different files and entries but it is the best way I can think off to pull off a BT based mod for FS
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art