A big topic about a small value
--------------------------------------------------------------------
--------------------------------------------------------------------
One big step closer to resolving the ship scrapping issue
As most of you probably know, be default BotF will set a system's industry output to 5 if it's lower than 5.
Formally, this can be written as
IF ( [industry output] < [value1] )
THEN { set [industry output] to [value2] }
with
[value1] = [value2] = 5
by default
Since the game allows relatively large industry outputs, I assumed that [value2] would be stored as 05000000 in trek.exe.
I finally found it after I had checked about 670 out of 691 occurences of "05000000" in trek.exe (Murphy )
Fortunately the position of [value1] was very close to that of [value2], else it would have been virtually impossible to find [value1], which is stored as a single byte!
Note that the "remaining turns" prediction above the build queue cannot handle industry outputs smaller than 5 and will treat them as 5. But both the "needed turns" display on the middle screen and the actual incremental will both be correct
[Edit]
This issue has been solved, see below
[/Edit]
For example, if you build something with a construction cost of 100 in a system with an industry output of 1, then the game will correctly display the number of turns as 100, but if you add it to the build queue (and there's no other building in the build queue), then the build queue will display "20 turns remaining". However, it WILL take 100 turns.
The data:
[value1]
position: 0x411C7
type: integer
length: 1 byte
signed: yes
default value: 5
NOTE: If you set this to a negative value, then the industry outputs of all systems will always be replaced by [value2].
[value2]
position: 0x411D1
type: integer
length: 4 bytes
signed: yes
default value: 5
UPDATE:
Finally I've found the "counterpart" of [value1] with respect to the build queue.
location: 0xF213F
type: integer
length: 4 bytes
default value: 5
Change this value to whatever you change [value1] to, and the remaining turns will be displayed correctly
edit: spelling
The Minimum Industry Value
The Minimum Industry Value; support/discussion/questions
Moderator: thunderchero
- Spocks-cuddly-tribble
- Code Master
- Posts: 1948
- Joined: Sun Apr 27, 2008 2:00 am
Re: The Minimum Industry Value
Post by Spocks-cuddly-tribble »
An addition for the Sumary -> Systems list "X Turn(s)" display:
My older note wrt the build queue:
0xF1FBE (1byte) seems to be counterpart of [value1] and 0xF213F that of [value2] with respect to the build queue.
EDIT:
AI industry output check (ignores morale)
Code: Select all
004418E1 cmp edx, 5
004418EA mov dword ptr [esp+400h], 5
0xF1FBE (1byte) seems to be counterpart of [value1] and 0xF213F that of [value2] with respect to the build queue.
EDIT:
AI industry output check (ignores morale)
Code: Select all
00441861 cmp ax, 5
00441867 mov eax, 5
I don't know how many bugs is too many but that point is reached somewhere before however many in BotF is.
Return to “The Minimum Industry Value”
Jump to
- General Content, Birth of the Federation
- ↳ Game Installation, Technical Support, & Tutorials
- ↳ Submit a support ticket for Windows (all versions)
- ↳ Site Information
- ↳ General Chat
- ↳ Multiplayer Games
- ↳ BOTF Strategy Guide
- Modding Content, Birth of the Federation
- ↳ Structured Modding Index
- ↳ Structured Modding Index
- ↳ Game Installation
- ↳ How to Install & Download Main Multi-Installer and mods (Alternate links)
- ↳ Multi-Game/Mod Installer Project Info
- ↳ How to Download and Mount botf.iso on a Virtual Drive
- ↳ HOW TO: ADD MODS - (manually)
- ↳ Multiple installations in only one directory
- ↳ Tutorial: Install BotF on Mac OS X (Illustrated!)
- ↳ Game Recoding and botf Redevelopment section
- ↳ MPR++
- ↳ Yet Another BotF Clone
- ↳ Supremacy
- ↳ BOTF2
- ↳ Rise of the Federtion
- ↳ Other Projects
- ↳ Keys & Parameters
- ↳ Hotkeys & Keyboard shortcuts
- ↳ Startup Codes (Command-line arguments)
- ↳ Ingame Notepad (Single Player Chatbox)
- ↳ Sending Chat Messages with Return Key
- ↳ Editing Tools
- ↳ Ultimate Editor
- ↳ BotF Patcher
- ↳ Getting into Modding (Recommended Tools)
- ↳ ShipView & BuildView
- ↳ Jokers Single-click installer & J-shipedit
- ↳ Increasing Game Resolution + patchtool
- ↳ WDF files + wdfedit & wdftool & basic wdf file info
- ↳ Energy Screen with 15+ Building Buttons + patchtool
- ↳ Tool for editing and importing the ship list to stbof.res
- ↳ Coding Guides
- ↳ A Nuts and Bolts Guide
- ↳ Assembler Offsets + Tools & Hints !
- ↳ Dynamic Key Variables
- ↳ Dynamic Key Variables
- ↳ editing Savegames files
- ↳ editing Savegames files
- ↳ Ship Removal Subroutine
- ↳ Ship Removal Subroutine
- ↳ Standard Trek.exe IDA Database
- ↳ 3D sfx
- ↳ HOW TO: add ship models with UE (ship packs)
- ↳ HOW TO: make new Botf 3d Designs, the Video Tutorial
- ↳ Creating New 3D Ship Designs
- ↳ Ship install tutorial with 96 available ships with photos
- ↳ HOW TO: Phasers
- ↳ HOW TO: Reduce the number of Palettes
- ↳ model phaser standards and ship scale
- ↳ Common/shared texures project
- ↳ Finishing a new ship pack
- ↳ Trek.exe Ship Slots
- ↳ Color of *phaser.hob files
- ↳ Ship Specific Weapon Animations
- ↳ Tactical Combat Space Background (Starfield)
- ↳ Increasing vertex limit in trek.exe
- ↳ Videos, Sounds & Credits
- ↳ Race Intros (videos)
- ↳ How to edit alt.res sounds
- ↳ Sound & Voice list Editing (converse.bin)
- ↳ Preventing Videos & Credits
- ↳ How to edit English/German.snd
- ↳ how to edit sfx.snd
- ↳ GUI (interface)
- ↳ How to edit GUI when changing main race
- ↳ Race Fonts (*.fnt files)
- ↳ Colors of Race Fonts and Map-Grids
- ↳ "new" wait cursors
- ↳ Creating Planet Animations
- ↳ extended view/zoom-in map view (option)
- ↳ Map & Starting Settings
- ↳ Galaxy Map Size
- ↳ Galaxy Shape Variables
- ↳ Galaxy Control Values
- ↳ Star Frequency
- ↳ Minor Race Frequency
- ↳ pop & planets limits for free- minor- & starting-systems
- ↳ Order of Planets
- ↳ Additional Starting Systems on any Starting Level
- ↳ Corner check (major home systems)
- ↳ Terraforming Fix for Additional Starting Systems and Minors
- ↳ Tech 1-5 starting pop & credits
- ↳ Mandatory Starting Buildings (yard & refinery)
- ↳ Disabling Dilithium for Spacefaring Races
- ↳ Starting Ships
- ↳ Territorial Claims
- ↳ Unlocking Empire Borders for all Treaties
- ↳ Economic/Military System-, Planet- & Anomaly-Properties
- ↳ trek.exe multipliers for growth, ground def., credits..
- ↳ Pop Support, Ground Combat, Orbital Batteries, Credit Output
- ↳ Ground Combat Calculation (success chance of invasion)
- ↳ Allow Intel Buildings to remain after conquest
- ↳ Pop Growth, Terraforming Costs, Trade Goods, Pulsar Patterns
- ↳ Adjusting trade good output
- ↳ Terraforming Costs (advanced)
- ↳ Colonies : population, farms, factories
- ↳ Planet GrowthValues ; habit.bin
- ↳ Adding a New Planet-Type (workaround)
- ↳ Planet Bonus Types
- ↳ Trade Routes, Ship Regeneration, Neutron Stars, Black Holes
- ↳ Trade Route Outputs
- ↳ Ferengi (free) trade routes
- ↳ The Minimum Industry Value
- ↳ Output of partially manned building groups
- ↳ the Cardassian bonus for manned intel
- ↳ Scrapping Buildings (for money)
- ↳ Remove "Buy" confirmation
- ↳ Morale
- ↳ how Morale works
- ↳ Base Morale on "Impossible"
- ↳ Battle size calculation of the Morale Chart
- ↳ Eliminate Empire morale issues + unremoved stations fix
- ↳ System bonuses for high morale & add wrong main buildings fix
- ↳ Unrest Orders (turn delay & limitations)
- ↳ Research & Tech
- ↳ Research Progress and Decay
- ↳ Tech Level Bonus Factors (+2%)
- ↳ The Ground Combat Tech Level Multiplier
- ↳ The research cost & effects of Future Technology
- ↳ Adding a Science and Technologies
- ↳ Minor Races
- ↳ Minor Race Advancement
- ↳ Initial Number of Orbitals for Minor Races
- ↳ Gifts to Minor Races: Amounts and Effects + major race gifts, offers & demands !
- ↳ Building minors ships after membership (option)
- ↳ Ships
- ↳ Map Range
- ↳ Of (Transwarp) Carriers and Fighters
- ↳ Extending the shiplist
- ↳ Special ships
- ↳ Auto-Upgrading Ships (options)
- ↳ Crew Experience
- ↳ Damage Control
- ↳ Raiding Percentages
- ↳ Intercept percentage
- ↳ Stealth and Cloak
- ↳ Starbase Combat Distance and ship to ship initial distance
- ↳ ship to ship distance
- ↳ Hit Probability / tevent.txt
- ↳ shield level & penetration
- ↳ the command ship ability + plasma stats
- ↳ Weapon Labels of Ships (Beams & Torpedoes)
- ↳ Unarmed Ship (Designation)
- ↳ Commands in tactical combat
- ↳ Adding assault command to colony and troop transport
- ↳ Ramming possiblities -> (ramming ship always destroyed)
- ↳ Shipname Appendix Fix & Adding new name groups
- ↳ maximum speed for ships
- ↳ AI (artifical inteligence)
- ↳ AI & Difficulty Level
- ↳ AI Fleet Buildup (basics)
- ↳ How the AI decides what ship type to build
- ↳ AI building behaviour (aibldreq.bin)
- ↳ AI battle calculation?
- ↳ AI Task Modifiers
- ↳ the AI minimum terraform threshold
- ↳ changing AI controling race of a savegame
- ↳ Intel, Empire scores & Victory conditions
- ↳ Intel (mechanisms and bugfixes)
- ↳ Economic and Military Score Overflow Fix
- ↳ Domination victory conditions & Borg invasion
- ↳ Random Events & Monster
- ↳ Random Events
- ↳ Monster planet attacks & Borg spawning
- ↳ Monster Editing Info
- ↳ Bugs & Exploits
- ↳ Lower CPU Patch
- ↳ Upgrading buildings bug (fix) above 65535 credits
- ↳ Disabling the ship scrapping exploit
- ↳ Unknown ship stats pop-up bug (fix)
- ↳ Phantom Dilithium Bug (fix) -> OPTION
- ↳ Outpost/Starbase for free bug-fix
- ↳ Terraforming Capacity of Task Forces (Instant-Terraforming fix)
- ↳ terraforming / planet image bug (fix)
- ↳ minor race hidden (from diplomacy) bug (fix)
- ↳ Rebellions & the message withdrawn bug (fix)
- ↳ The Bandi Advancement Bug (fix)
- ↳ Minor declares war morale error (fix)
- ↳ liberating foreign home systems (fix)
- ↳ Liberating Native Systems (morale error fix)
- ↳ Morale overflow over 32767 bug (fix)
- ↳ Weapons "Jamming" Fix for Space Stations
- ↳ Misc GUI Fixes
- ↳ custom planet names for any system (fix)
- ↳ Star-names display (fix)
- ↳ Intel Empire screen - dilth/total systems (fix)
- ↳ Cardassian Intel/Research display (fix)
- ↳ rejected friendship message bug (fix)
- ↳ Two Bugs of the "Trade Routes" Bonus Type
- ↳ Fixes Compilation (GalaxyII 640points beam, enraged antedeans, german taskforce/inhabitant descriptions)
- ↳ stbof.res file info/trek.exe mechanics
- ↳ stbof.res file limit
- ↳ Structure of edifice.bst -> edifice.bst (old)
- ↳ Adding Buildings to edifice.bst
- ↳ Main buildings and AI
- ↳ Structure Upgrades (Trek.exe info)
- ↳ edifbnft.bst (building bonus types)
- ↳ Adding Planets to planet.pst
- ↳ Intel.bin
- ↳ Race.rst
- ↳ tfdesign.tfd & combat.bin (broken/unused)
- ↳ Race Descriptions (lexicon.dic)
- ↳ shipname.bin
- ↳ Unfinished Projects
- ↳ Plasma (i.e.Pulse) weapons
- ↳ using damage textures with new ship models -> trek.exe basics
- ↳ extending the task force size / marking multiple groups
- ↳ Tech Level Bonuses for Ships
- ↳ New Resources & Star System Features
- ↳ DirectPlay Emulation Project
- ↳ Complete Conversions Mods
- ↳ Ultimate Dominion Mod
- ↳ Mirror Universe mod
- ↳ Galaxies MOD
- ↳ Balance of Power Mod
- ↳ All The Ages Mod
- ↳ Ultimate Mod
- ↳ Error Correction Mod
- ↳ Uncivil wars
- ↳ Flagship Mod
- ↳ Building mod
- ↳ Ferengi-Dominion Alliance mod
- ↳ Fluid's Multi Player Mod
- ↳ Prime Directive Mod
- ↳ No Building Upgrades Mod
- ↳ Imperial Mod
- ↳ Babylon 5 Mod
- ↳ Borg Incursion Mod
- ↳ Colonies Mod
- ↳ Delta Quadrant Mod
- ↳ Mirror Mirror Mod
- ↳ Planet Mod
- ↳ Resistance Is Futile Mod
- ↳ Stargate Universe Mod
- ↳ Thunderchero's Multi-player mod
- ↳ AFC Mod
- ↳ Game Recoding and botf Redevelopment section
- ↳ MPR++
- ↳ Yet Another BotF Clone
- ↳ BOTF2
- ↳ Rise of the Federtion
- ↳ Other Projects
- ↳ Editing Tools
- ↳ Ultimate Editor
- ↳ BotF Patcher
- ↳ Larger Taskforces Patch
- ↳ HOW TO: Create multi "mod" installer
- ↳ Increasing Game Resolution + patchtool
- ↳ WDF files + wdfedit & wdftool & basic wdf file info
- ↳ Energy Screen with 15+ Building Buttons + patchtool
- ↳ Tool for editing and importing the ship list to stbof.res
- ↳ Ultimate Unwrap 3D hob Importer
- ↳ Showcase Ships/Stations/3D-FX
- ↳ HOW TO: Ship models, creation and 3d-sfx
- ↳ HOW TO: add ship models with UE (ship packs)
- ↳ HOW TO: add ship models with UE (ship packs)
- ↳ HOW TO: make new Botf 3d Designs, the Video Tutorial
- ↳ Creating New 3D Ship Designs
- ↳ HOW TO: Reduce the number of Palettes
- ↳ Ship install tutorial with 96 available ships with photos
- ↳ HOW TO: Phasers
- ↳ model phaser standards and ship scale
- ↳ Common/shared texures project
- ↳ Finishing a new ship pack
- ↳ Trek.exe Ship Slots
- ↳ Color of *phaser.hob files
- ↳ Ship Specific Weapon Animations
- ↳ General Modding Information/Questions
- General Content, Supremacy
- ↳ Supremacy
- Archives
- ↳ General Chat Archive
- ↳ Modding Information Archive
- ↳ Support Archive