mini_cpu

Upload your latest creations here.
Please note that by posting comments to posts in this forum you forfeit your personal copyright on whatever you post. AI Scripters reserves the right to re-use objective comments in script reviews without requiring the posting author's permission. Credit, where appropriate will be given in such cases.
Post Reply
x1091
Forumer
Posts: 1
Joined: Sat Mar 23, 2024 9:34 am

mini_cpu

Post by x1091 »

; Map Type (tested on) : Arabia / Team Islands / Nomad ; Resigns on Migration
; Map Size: Any
; Victory: Standard
; Civilization: Any
; Population: Any
; Difficulty: Any (custom difficulty scaling)
; Teams Locked: Either (minimal diplo)
; Resources: Standard
; Reveal Map: Standard
; Starting Age: Dark Age
; All Techs: No

; mini-AI
; trains most units
; waller
; currently weak: 30pop "fast feudal"
; no cheats or cc- commands whatsoever

; v42 - original aiforums release
; v72 - nomad bug fixed ; shrivamsha ; retreating ; pocket scouts / flank archers ; goths/cumans now wall at perimeter 1 ; locks the gates
Attachments
mini_cpu_v72.zip
(16.04 KiB) Downloaded 10 times
mini_cpu_v42.zip
(14.2 KiB) Downloaded 27 times
Last edited by x1091 on Fri Jan 31, 2025 9:26 pm, edited 3 times in total.
SuperSkurken
Forumer
Posts: 13
Joined: Thu May 02, 2024 11:29 am

Re: mini_cpu

Post by SuperSkurken »

I am looking forward to testing it out. Is it a Fast Castle approach? No Feudal army?
Rorrik
Forumer
Posts: 45
Joined: Fri Jul 24, 2020 10:11 am

Re: mini_cpu

Post by Rorrik »

x1091 wrote: Sun Jan 26, 2025 5:51 am ; Bugs out on Nomad - builds a tc, then hunts and builds farms but all villagers go to wood and nobody cares about the farms. Help please?
Your #load-if-defined NOMAD-MAP would only fire on the built-in nomad map, however, custom maps should get caught in the (defconst foodworkers 80) case anyway, so this seems unlikely.

Try printing out foodworkers somewhere to make sure it is getting set to something. In dark age, you are multiplying the gold and stone by 0, so if the foodworkers is somehow 0 or (more likely) -1, then wood would be 100%.

Another possibility is that your distribution rule somehow bugs out and can't run due to trying to research ballistics and chemistry, but it seems odd that that wouldn't also cause a problem on other maps.

Your distribution rule also includes this fact:
(or (current-age-time == 5)
(building-type-count-total town-center == 0))

This looks to me like on any map this rule will only fire once per age, which makes sense. But on Nomad, it should fire right away (no TC) and fire every pass until the TC foundation is placed. Then it may fire again 5 seconds into the game. I don't see any reason that that would cause a problem, since you always set before modifying (good job).

Something odd is happening, but you chatting out foodworkers and the gatherer SNs should shed some light. I can't actually run it right now, but I might be able to tinker some tonight.
Post Reply