.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old August 30th, 2001, 11:44 PM

arthurtuxedo arthurtuxedo is offline
Corporal
 
Join Date: Aug 2001
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
arthurtuxedo is on a distinguished road
Default Weapon modifiers need fixing

I ran into a problem with weapon modifiers while trying to make a mod. The idea of the mod is that bigger ships are big, bad, and can carry a lot of weapons and shielding, but they are also easy to hit with big guns. In this system, a corvette (escort) gives +30% defense while a battleship (dreadnought) has -110%. Larger mountings do proportionally more and more damage, but also become less accurate. For example, large mounting has mass *3, damage *6, accuracy -50, so it does a lot more damage than three normal mounted weapons would, but you won't hit anything below a cruiser with it. Massive mount gives mass *12, damage *48, accuracy -200, so it can only be used effectively against starbases and planets.

The mod would work great if it wasn't for the way modifiers were calculated and applied. The way it works is that the game calculates the chance to hit, sees if the number is over 100%, and if it is, changes it to 100%, THEN applies weapon modifiers. So if my heavy mounted DUC (accuracy -100) is firing at a Command Ship (defense -150), and the chance to hit at that range is normally 47%, then I should have a 97% chance to hit, right (47 + 150 - 100 = 97)? Wrong. I've got a 0% chance to hit, because instead of calculating (47 + 150 - 100 = 97) like it should, it calculates (47 + 150 = 197 = 99 - 100 = -1 = 0). What the hell is up with that?

That's incredibly stupid even if you're not making a mod like mine. Let's say you just want PPBs to be less accurate, so you give a -20 modifier. And let's say you have a ship with combat sensors III (65% bonus) firing at a ship with no ECMs or defense bonus, and the base chance to hit is 70%. Your chance to hit should be 99% (70 + 65 - 20 = 115 = 99), but instead it's 79% (70 + 65 = 135 = 99 - 20 = 79). WTF? I wonder if this represents a decision or just an oversight/bug. Can we expect a fix in the next patch?
Reply With Quote
  #2  
Old August 31st, 2001, 09:39 AM
dogscoff's Avatar

dogscoff dogscoff is offline
General
 
Join Date: Mar 2001
Location: UK
Posts: 4,245
Thanks: 0
Thanked 0 Times in 0 Posts
dogscoff is on a distinguished road
Default Re: Weapon modifiers need fixing

Sounds like a good mod. What have you done about the talisman?

------------------
SE4 Code:
L GdY $ Fr- C- Sd T!+ Sf-- Tcp-- A% M>M+ MpD! RV Pw Fq+ Nd- Rp+ G-
/SE4 Code
Work out your code at http://www.sandman43.fsnet.co.uk/se4main.htm
Reply With Quote
  #3  
Old August 31st, 2001, 11:54 AM
Mephisto's Avatar

Mephisto Mephisto is offline
Brigadier General
 
Join Date: Sep 2000
Location: Frankfurt, Germany
Posts: 1,994
Thanks: 0
Thanked 0 Times in 0 Posts
Mephisto is on a distinguished road
Default Re: Weapon modifiers need fixing

Keep in mind that the Ai will always use the biggest available mount and the largest available ship so you will end up with dreadnought incapable of hitting anything but planets and starbases.
__________________
For, in the final analysis, our most basic common link is that we all inhabit this small planet. We all breathe the same air. We all cherish our children's futures. And we are all mortal. - JFK
Reply With Quote
  #4  
Old September 1st, 2001, 12:54 AM

arthurtuxedo arthurtuxedo is offline
Corporal
 
Join Date: Aug 2001
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
arthurtuxedo is on a distinguished road
Default Re: Weapon modifiers need fixing

dogscoff - Ignored it I'll think up something to do with it later, but for now I don't need to because I'm only using the mod for myself and neither I nor any AI player (that I know of) uses Religious Tech.

Mephisto - Yeah, I did find that out actually when I saw that the AI had no weapons on any of their ships except the big ones because massive mounting a DUC takes 360K (or something like that). I also found out that the AI will always try to build the biggest ship they can, so I can't give all the ships at once because in the beginning it takes over 1000 turns to build a Command Ship (10,000 Kt). I suppose I could have standard SEIV mountings for the AI and the modded ones for players (racial tech "Is a Player" maybe). I'm working the kinks out.

Hotfoot - I-War board, right? I'd like to come up with new techs and combine it with other mods and whatnot, but I just don't have the patience to wade through research files. I enjoy mucking through components.txt, but messing with the AI research files is something I'm just not willing to do.
Reply With Quote
  #5  
Old September 1st, 2001, 01:08 AM

Hotfoot Hotfoot is offline
Corporal
 
Join Date: May 2001
Posts: 175
Thanks: 0
Thanked 0 Times in 0 Posts
Hotfoot is on a distinguished road
Default Re: Weapon modifiers need fixing

Hey Gritsucker! Fancy meeting you here of all places.

As to your mod, it sounds like it would be really interesting, but I'm afraid that I haven't even begun to muck around in files like that. So I'm afraid that this post, like many others that have come before, ultimately fits the equation PC=PC+1

Anyway, keep me posted as to how this goes. Maybe you can combine it with some of the mods that add all sorts of new ship hulls. That would be rather interesting, I would think.

-Hotfoot
"Just like always, the bit at the end."
__________________
L* GdY $? Fr? C--- S* T? Sf* Tcp- A++ M>M+ Mp!>Mp* RHP!>RV Pw Fq ND? Rp+ G++ AuO MM++
Reply With Quote
  #6  
Old September 1st, 2001, 01:11 AM

arthurtuxedo arthurtuxedo is offline
Corporal
 
Join Date: Aug 2001
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
arthurtuxedo is on a distinguished road
Default Re: Weapon modifiers need fixing

OK I just tried the "Is a Player" idea and it appears the Weapon Mountings appear and are usable even if you put

Number of Tech Req := 1
Tech Area Req 1 := Is a Player
Tech Level Req 1 := 1

Can we have a fix for this too, please?
Reply With Quote
  #7  
Old September 1st, 2001, 03:32 AM

Phoenix-D Phoenix-D is offline
National Security Advisor
 
Join Date: Nov 2000
Posts: 5,085
Thanks: 0
Thanked 0 Times in 0 Posts
Phoenix-D is on a distinguished road
Default Re: Weapon modifiers need fixing

The obvious question is,

Does the AI HAVE the Isaplayer tech?

Barring that, the easy way out is to set a "normal" mount at the end. 100 damage %, 100 size %, no mods at all. since the AI always uses the Last in the list as long as it will fit..

Phoenix-D
__________________
Phoenix-D

I am not senile. I just talk to myself because the rest of you don't provide adequate conversation.
-Digger
Reply With Quote
  #8  
Old September 1st, 2001, 06:21 AM

arthurtuxedo arthurtuxedo is offline
Corporal
 
Join Date: Aug 2001
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
arthurtuxedo is on a distinguished road
Default Re: Weapon modifiers need fixing

Really? Last in the list, huh? OK, I'll keep that in mind.
Reply With Quote
  #9  
Old September 1st, 2001, 06:26 AM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: Weapon modifiers need fixing

quote:
Barring that, the easy way out is to set a "normal" mount at the end. 100 damage %, 100 size %, no mods at all. since the AI always uses the Last in the list as long as it will fit..
That's what I did for my "Quality mounts" and it works great!

------------------
The latest info on Pirates & Nomads (forum thread).
-<Download V2.3b>- (Fixed rare RCE from AI; just extract to your SE4 folder)
-<P&N V2 AI patch>- (V2 only, for the AIs included in ZIPs from v2.0 to v2.3, prevents rare RCEs)
-<Download P&N Classic>- (The final release of P&N v1.x, just extract to your SE4 folder)
-<Download compatible EMPs for P&N v1.2 through v1.7>-
-<Download SJs latest AI Patcher>-
Visit My Homepage

Other Links:
-<Play By Web>-
-<Schlock Mercenary>- (great space-based webcartoon) -<First Strip>-
-<8-bit Theater>- (fun comic with the pixellated FF1 characters)

<SE4Code>
MpN R*-A RM(L) RP+ TCP- Fq++ FR!++ P? A+/- Sf+ Nd- L $ M++++ Pw!+
</SE4Code>
Reply With Quote
  #10  
Old September 2nd, 2001, 04:14 AM

arthurtuxedo arthurtuxedo is offline
Corporal
 
Join Date: Aug 2001
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
arthurtuxedo is on a distinguished road
Default Re: Weapon modifiers need fixing

Ahh, I always wondered why you did that. P&N rocks, btw. Although I'm not sure if you're aware that expanded automation without tiny race still gives you mini-auto bridges.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 11:59 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.