Is there something wrong with this...?


You can change this now in User CP.
...or is NewGen screwing up for no reason?

function DoAlliance takes nothing returns nothing
	local integer i=0
	local player p
		set p=Player(i)
		if IsPlayerEnemy(p,Player(0)) then
			call SetPlayerAllianceStateBJ(p,Player(14),bj_ALLIANCE_ALLIED_VISION)
			call SetPlayerAllianceStateBJ(Player(14),p,bj_ALLIANCE_ALLIED_VISION)
			call SetPlayerAllianceStateBJ(p,Player(13),bj_ALLIANCE_UNALLIED)
			call SetPlayerAllianceStateBJ(Player(13),p,bj_ALLIANCE_UNALLIED)
			call SetPlayerAllianceStateBJ(p,Player(13),bj_ALLIANCE_ALLIED_VISION)
			call SetPlayerAllianceStateBJ(Player(13),p,bj_ALLIANCE_ALLIED_VISION)
			call SetPlayerAllianceStateBJ(p,Player(14),bj_ALLIANCE_UNALLIED)
			call SetPlayerAllianceStateBJ(Player(14),p,bj_ALLIANCE_UNALLIED)
		exitwhen i==11
		set i=i+1
	call SetPlayerAllianceStateBJ(Player(14),Player(13),bj_ALLIANCE_UNALLIED)
	call SetPlayerAllianceStateBJ(Player(13),Player(14),bj_ALLIANCE_UNALLIED)

//Adds all picked units to The White Hand unit group
function AddToGroupTWH takes nothing returns nothing
    if IsUnitType(GetEnumUnit(), UNIT_TYPE_HERO) == false then
        call GroupAddUnit(udg_Team1UG, GetEnumUnit())

//Adds all picked units to The Black Circle unit group
function AddToGroupTBC takes nothing returns nothing
    if IsUnitType(GetEnumUnit(), UNIT_TYPE_HERO) == false then
        call GroupAddUnit(udg_Team2UG, GetEnumUnit())

//Sets The White Hand to player 13 and changes its color
function WhiteHandConvert takes nothing returns nothing
    call SetUnitOwner(GetEnumUnit(), Player(13), false)
    if IsUnitType(GetEnumUnit(), UNIT_TYPE_HERO) == false then
        call SetUnitColor(GetEnumUnit(), PLAYER_COLOR_AQUA)

//Sets The Black Circle to player 14 and changes its color
function BlackCircleConvert takes nothing returns nothing
    call SetUnitOwner(GetEnumUnit(), Player(14), false)
    if IsUnitType(GetEnumUnit(), UNIT_TYPE_HERO) == false then
        call SetUnitColor(GetEnumUnit(), PLAYER_COLOR_BROWN)

function Trig_Initialization_Actions takes nothing returns nothing
    //Calls the functions that convert player 1 and player 6's spawned buildings to
    //neutral extra and neutral victim, also calls the functions that sets the alliance
    //settings of the forces
    set udg_Team1UG = CreateGroup()
    set udg_Team2UG = CreateGroup()
    call ForGroup( GetUnitsOfPlayerAll(Player(0)), function AddToGroupTWH)
    call ForGroup( GetUnitsOfPlayerAll(Player(6)), function AddToGroupTBC)
    call ForGroup(udg_Team1UG, function WhiteHandConvert)
    call ForGroup(udg_Team2UG, function BlackCircleConvert)
    set udg_Team1PG = GetPlayersAllies(Player(0))
    set udg_Team2PG = GetPlayersAllies(Player(6))
    call SetPlayerName(Player(13), "|cff2f4f4fThe White Hand|r")
    call SetPlayerName(Player(14), "|cff8b4513The Black Circle|r")
    call ForceAddPlayer(udg_Team1PG, Player(13))
    call ForceAddPlayer(udg_Team2PG, Player(14))
    call SetPlayerTeam(Player(13), 0)
    call SetPlayerTeam(Player(14), 6)
    call SetPlayerState(Player(13), PLAYER_STATE_ALLIED_VICTORY, 1)
    call SetPlayerState(Player(14), PLAYER_STATE_ALLIED_VICTORY, 1)
    call SetPlayerController(Player(13), MAP_CONTROL_COMPUTER)
    call SetPlayerController(Player(14), MAP_CONTROL_COMPUTER)
    call SetPlayerRacePreference(Player(14), RACE_PREF_HUMAN)
    call SetPlayerRacePreference(Player(14), RACE_PREF_UNDEAD)
    call EnableOcclusion(true)
    call GroupClear(udg_Team1UG)
    call GroupClear(udg_Team2UG)
    call ForceClear(udg_Team1PG)
    call ForceClear(udg_Team2PG)
    call DestroyGroup(udg_Team1UG)
    call DestroyGroup(udg_Team2UG)
    call DestroyForce(udg_Team1PG)
    call DestroyForce(udg_Team2PG)

function InitTrig_Initialization takes nothing returns nothing
    set gg_trg_Initialization = CreateTrigger(  )
    call TriggerRegisterTimerEventSingle( gg_trg_Initialization, 0.00 )
    call ExecuteFunc(DoAlliance)
    call TriggerAddAction( gg_trg_Initialization, function Trig_Initialization_Actions )

Edit: Looks like it's the DoAlliance function that's causing the problem. Because when I delete it, NewGen allows me to test map again. *figuring out problem

Edit: This is very strange. I removed the DoAlliance function and then put it back in, and this time, it tested fine, but it didn't work.


You can change this now in User CP.
Player 1 (and probably his allies) aren't allied with Neutral Victim.
I suspect the same with the other team and Neutral Extra. I'll test that now.

Edit: Maybe it's something wrong with NewGen. It's bugging out on me. Not even picking out obvious errors in coding. Redownloading it I guess.
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    I don't want to compete for that, yall can have it.
  • Varine Varine:
    @The Helper I'm trying. Once I am more prepared to be figuring out school I'll probably ask for your advice
  • Varine Varine:
    Right now I'm just trying to get through the pandemic and figure out how I'm going to pay for it, and figure out what I need to get a job at Best Buy instead of a kitchen somewhere.
  • thewrongvine thewrongvine:
    oy just catching up on the discussion above. @Varine yeah I usually alternate between claritin & zyrtec, depending on whatever my body decides to reject at the time lol
  • thewrongvine thewrongvine:
    the more I use it the less effective it gets over time as my body accustoms to it so I try to not use it every day
  • S songbird:
    Glad to see some interest in the IS3 NUON reprint. :)
  • The Helper The Helper:
    Thank you Carl for making that happen that just might be the spark we need.
  • Varine Varine:
    I'm confused and amazed that NUON and TWV's news postings are the things still active.
  • Varine Varine:
    Or Tom Mai, not TWV
  • Varine Varine:
    Whatever happened to Cheshire? Or Firecat, whatever his real name was?
  • Varine Varine:
    I've been using both claritin and fexofenadine or something like that recently alternately and that's been kinda working, I don't feel like my face is going to explode at least. Eyes are still itchy as fuck though
  • tom_mai78101 tom_mai78101:
    I dunno, haven't seen Firecat in a long while now.
  • tom_mai78101 tom_mai78101:
    By the way, we have new file attachment size limits now.
  • Varine Varine:
    Are they bigger?
  • tom_mai78101 tom_mai78101:
    Yeah, new max size limit is 64 MB, to accommodate NUON-Dome emulation.
  • Varine Varine:
    I don't think I ever ran into a file size problem before. What was it before?
  • Varine Varine:
    I've had file type issues before I think, but I haven't uploaded anything since like 2010.
  • The Helper The Helper:
    alot smaller than that basically barely anything and it would have been different then 2010 because of the forum upgrade
  • Varine Varine:
    lol I forgot this used to look different
  • Varine Varine:
    It's by far the brightest webpage I regularly visit, the first thing I usually do is try to figure out dark mode.
  • tom_mai78101 tom_mai78101:
    If you invert the colors, The Helper Forums looks amazing
  • tom_mai78101 tom_mai78101:
    It still has that blue theme at the top
  • Ghan Ghan:
    There's no particular hard limit to attachments. "Something reasonable" is preferred to "a size large enough to fill up the server disk"
  • B Badmanhop (Andy):
    I would be interested to.
  • tom_mai78101 tom_mai78101:
    Feel free to contribute to NUON.

    Staff online

    Members online


    Hive Workshop