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,069 posts
  • Location:Germany
  • Projects:Lot3A
  •  ~~
  • 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,069 posts
  • Location:Germany
  • Projects:Lot3A
  •  ~~
  • 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

    title available

  • Members
  • 389 posts
  • Location:France
  • Projects:ROTWK Patch 2.02, Wars of the North, BFME1 1.08 Complete Edition
  •  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) are 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 in bfme1 you get the value you choose multiplied by 3 (so with 5 u get 15)

to fix this u will need to edit the line MaxBoxes in the MordorWorker object (it's set to 3, change it to 1)


Edited by Miraak5, 11 November 2019 - 01:25 AM.

He was the first...





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users