Jump to content


Photo

How can I change lumbermill money/points output?

modding bfme1

  • Please log in to reply
5 replies to this topic

#1 MarceltheVirginian

MarceltheVirginian
  • Members
  • 5 posts

Posted 30 April 2019 - 02:36 PM

I want to change the amount of resources created by lumbermills each time a log is deposited by a worker. I have beginner level coding experience.

 

My system: Windows 7 Pro, Service Pack 1, 64 bit

My game: BFME1, patch 1.06; HD Edition mod by Mathijs; T3A: Online


Edited by MarceltheVirginian, 30 April 2019 - 02:37 PM.


#2 Echo

Echo

    T3A:Online

  • T3A Staff
  • 1,006 posts
  • Projects:Blue Wizard Mod
  •  yay blue
  • Division:BFME
  • Job:T3A Moderator
  • Donated

Posted 01 May 2019 - 10:00 AM

At first glance it really looks like this is a hard-coded value. There is a "MORDOR_LUMBERMILL_MONEY_TIME" macro in gamedata.ini, but it doesn't seem like it's used. It seems connected to the SpecialAbilityHarvest special power. Maybe someone else managed to change it somehow, but I don't see an obvious way to modify that value.

Also, for coding-related issues we don't need to know your system information, it's not relevant :p


26285.png


#3 MarceltheVirginian

MarceltheVirginian
  • Members
  • 5 posts

Posted 01 May 2019 - 04:38 PM

At first glance it really looks like this is a hard-coded value. There is a "MORDOR_LUMBERMILL_MONEY_TIME" macro in gamedata.ini, but it doesn't seem like it's used. It seems connected to the SpecialAbilityHarvest special power. Maybe someone else managed to change it somehow, but I don't see an obvious way to modify that value.

Also, for coding-related issues we don't need to know your system information, it's not relevant :p

I figured more info was better than less. I'll look into the SpecialAbilityHarvest power. Thanks



#4 Echo

Echo

    T3A:Online

  • T3A Staff
  • 1,006 posts
  • Projects:Blue Wizard Mod
  •  yay blue
  • Division:BFME
  • Job:T3A Moderator
  • Donated

Posted 01 May 2019 - 11:05 PM

Yeah it definitely is better that way, just mentioned it because specifically for coding it's not really making a difference on what Windows version you are. Doesn't bother me or anything, just a suggestion to save time :) The hardware information becomes relevant when you're trying to execute (old) modding tools or for example setting up the -mod command way of modding.

 

Would be interesting if you find a way, but as I said chances are not very high. Usually there should be a deposit value defined somewhere, and I could not find it; neither in the worker's code nor in the lumber mill code. :(


26285.png


#5 Ganon

Ganon

    What's this?

  • Project Team
  • 967 posts
  • Location:Ohio, United States
  • Projects:My Link Mod
  •  Code Scientist

Posted 02 May 2019 - 12:53 PM

Check the trees. I think I may have seen something like that in the tree code.

#6 Miraak5

Miraak5

    Dragonborn

  • Members
  • 291 posts
  • Location:France
  • Projects:Rotwk mod: Wars of the North, BFME1 Patch 1.08
  •  BIG coding, Map scripting and AI coding

Posted 02 May 2019 - 01:13 PM

Actually yes the "MORDOR_LUMBERMILL_MONEY_AMOUNT" (and the timing one too) is unused but it's competly possible to change the money you earn from chopping trees

to change that you need to edit that line in gamedata "ValuePerSupplyBox" (by default it's 5)

but strangly in bfme1 you get the value you choose multiplied by 3 (so with 5 u get 15) wich is kinda annoying (by the way rotwk don't have that problem at all)

to fix this u will need to work with the "ValueMultiplier" in the Lumbermill code (in the SupplyCenterDockUpdate), for exemple i wanted to get 10 money with lumber so i set 5 in the gamedata wich should gave me 15 ingame and then set the ValueMultiplier to 0.67 to get 10 (well as close to 10 as possible)


Edited by Miraak5, 02 May 2019 - 02:13 PM.

He was the first...






Also tagged with one or more of these keywords: modding, bfme1

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users