ShowPopup not working [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
General_Nate
Lieutenant General
Lieutenant General
Posts: 689
Joined: Sun Jun 28, 2009 4:01 pm
Projects :: None because BFII is not working
Games I'm Playing :: Minecraft
xbox live or psn: No gamertag set
Location: 127.0.0.1

ShowPopup not working [Solved]

Post by General_Nate »

Alright, yet another issue.

I've added the "ShowPopup()" To my LUA, and all I get is this fancy error in my log:
Hidden/Spoiler:
Message Severity: 2
.\Source\LuaCallbacks_Mission.cpp(2264)
ShowPopup() has been depricated. Please remove all references to it in code
:shock: So, here is my code that it doesn't like:
Hidden/Spoiler:
--Show a hint once the player gets to a point
ActivateRegion("hint1")
testfunction = OnEnterRegion(
function(region, player)
ShowPopup("mods.mymap.hint1")
end,
"hint1"
)
Help would be appreciated. :thumbs:
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: ShowPopup not working

Post by AceMastermind »

This topic appeared in the search results for showpopup

http://www.gametoast.com/forums/viewtop ... 21#p316721
[RDH]Zerted wrote:ShowPopup() is no longer the recommended way to create a popup.
Superm9 wrote:Zerted - What is the recommended method of showing a popup then?
Teancum wrote:I think the recommended function is ShowObjectiveTextPopup() -- however ShowPopup() still works. It's just that you'll get a log error. If you're fine with that don't change it.
User avatar
General_Nate
Lieutenant General
Lieutenant General
Posts: 689
Joined: Sun Jun 28, 2009 4:01 pm
Projects :: None because BFII is not working
Games I'm Playing :: Minecraft
xbox live or psn: No gamertag set
Location: 127.0.0.1

Re: ShowPopup not working

Post by General_Nate »

Thanks! It works! Can be solved.
Post Reply