PHP Web Host - Quality Web Hosting For All PHP Applications
  Login or Register
Modules
· Home
· Content
· Feedback
· Forums
· Monthly Newsletter
· Statistics
· Submit News
· Web Links
· Your Account
 
Site Pages
Game Information
Cheats
Galaxy Size
Game Backround
Game Overview
Information on structures
Morale Chart
Space Stations
Starships

Race Information
Cardassian Union
Federation
Ferengi Alliance
Klingon
Romulan
Minor Races

FAQ & Strategy Guide
Calladice's FAQ
Strategy Guide
Xavori Strategy Guide

Modding
Hex Editor
Modding Program Editing
Adding ship With UE
How to lower the number of Palettes
Large Map Generation Chart and tutorial for UE
UE Basics
 
Birth of the Federation: Forums


View next topic
View previous topic
Post new topic   Reply to topic
Author Message
Gowron
Code Master
Code Master



Joined: Apr 26, 2008
Posts: 311
Location: 50° N, 11° E

PostPosted: Sat Jul 31, 2010 11:37 am Reply with quote Back to top

By default, minor races start off with one orbital battery per 50 population (rounded down). The divisor (i.e. the "50") is stored in trek.exe at position 0x50AE6 and can be modified to make minors start with more (or less) orbitals Smile


Assembler Code:
Code:
:004516CD 8B842462010000          mov eax, dword[esp+00000162]      // get star...
:004516D4 C1F810                  sar eax, 10                       // ... system ID
:004516D7 69C028030000            imul eax, 00000328                // multiply by size of a star system entry
:004516DD 8B15C8365A00            mov edx, dword[005A36C8]          // systInfo offset
:004516E3 01D0                    add eax, edx                      // data offset for current star system
:004516E5 B932000000              mov ecx, 00000032                 // divisor
:004516EA 8B4040                  mov eax, dword[eax+40]            // (starting) population number
:004516ED 31D2                    xor edx, edx
:004516EF F7F1                    div ecx                           // division
:004516F1 8BB42464010000          mov esi, dword[esp+00000164]
:004516F8 89C3                    mov ebx, eax                      // number of orbitals = result of division
:004516FA 31C9                    xor ecx, ecx
:004516FC 85C0                    test eax, eax
:004516FE 7E14                    jle 00451714                      // skip loop if number is zero
:00451700 BF05000000              mov edi, 00000005                 // orbital battery ID
---------
:00451705 0FBFC6                  movsx eax, si
:00451708 89FA                    mov edx, edi
:0045170A 41                      inc ecx                           // increase loop counter
:0045170B E8E046FFFF              call 00445DF0                     // create building specified by ID
:00451710 39D9                    cmp ecx, ebx
:00451712 7CF1                    jl 00451705                       // loop


Note that minors will be very hard to conquer if they start with lots of orbitals, even if their tech levels are low, because there's a feature that makes their orbitals do as much damage as level 8 OBs even at the lowest tech levels.

_________________
A discovery consists in seeing something everybody has seen and at the same time thinking something nobody has thought yet. 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2008 phpBB Group
:: Theme & Graphics by Daz :: Ported for PHP-Nuke by nukemods.com ::
All times are GMT - 5 Hours
Forums ©
 

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. All the rest ? 2002 - 2008 by Kevin Hurley aka AFC.


Birth of the Federation is a trademark by Microprose & Hasbro Interactive. All trademarks are properties of their respective owners.
Copyright Notes Star Trek is a trademark of Paramount


Powered by Raven Nuke
PhpNuke Themes Nuke_Cron



Page Generation: 0.10 Seconds

:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional & XHTML 1.0 Transitional Compliance by RavenNuke™ TEAM ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation :: W3C XHTML 1.0 Transitional Compliance Validation ::