Post Reply 
 
Thread Rating:
  • 2 Votes - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help. Remove Skyscraper Hotel limit
Author Message
Jackaaa Offline
Newbie
*

Posts: 3
Joined: Jun 2012
Post: #1
Help. Remove Skyscraper Hotel limit
Hi to all,
(my English is not perfect because I do not speak English very well, excuse me if I do a little grammatical errorWink)

however,
I have a problem with the hotel Paradise, this problem was also in Tropico 3 but I thought with Tropico 4 had removed this problem.
Does anyone know if there is a possibility even with a mod or maybe manually editing some files to remove the limit of construction for this hotel?
[Image: Skyscraper_Hotel.png]
I'd like to build this Hotel a lot, not just 1 as set by the creators of the game,

Thanks to all who help me Smile!!!
04-06-2012 08:47 PM
Find all posts by this user Quote this message in a reply
Swixel Offline
Epic Member
*******

Posts: 1,087
Joined: Sep 2011
Post: #2
RE: Help. Remove Skyscraper Hotel limit
Code:
SimpleMod = function()
    g_Classes.SkyscraperHotel.unique = 0 -- Remove Limit
    g_Classes.SkyscraperHotelModern.unique = false -- Remove limit
end

-- Only fire once
local FiredOnce = false

-- UA Set Mode
OnMsg.UASetMode = function(actions,mode)

    -- Fire until fired once
    if not FiredOnce then
        -- If we boot, trip it ...
        if(mode == "Boot") then
            FiredOnce = true
            
            -- Run the thread to bypass it
            CreateRealTimeThread(function()

                -- Do mod loading code here.
                SimpleMod()
                
            end)
        end
    end
end

"I am not ashamed to confess I am ignorant of what I do not know" ― Cicero.

"You had to hand it to the Patrician, he admitted grudgingly. If you didn't, he sent men to come and take it away." ― Terry Pratchett (Guards! Guards!)
(This post was last modified: 05-06-2012 12:51 AM by Swixel.)
05-06-2012 12:50 AM
Find all posts by this user Quote this message in a reply
Jackaaa Offline
Newbie
*

Posts: 3
Joined: Jun 2012
Post: #3
RE: Help. Remove Skyscraper Hotel limit
(05-06-2012 12:50 AM)Swixel Wrote:  
Code:
SimpleMod = function()
    g_Classes.SkyscraperHotel.unique = 0 -- Remove Limit
    g_Classes.SkyscraperHotelModern.unique = false -- Remove limit
end

-- Only fire once
local FiredOnce = false

-- UA Set Mode
OnMsg.UASetMode = function(actions,mode)

    -- Fire until fired once
    if not FiredOnce then
        -- If we boot, trip it ...
        if(mode == "Boot") then
            FiredOnce = true
            
            -- Run the thread to bypass it
            CreateRealTimeThread(function()

                -- Do mod loading code here.
                SimpleMod()
                
            end)
        end
    end
end

Thank you Swixel!

But, how can I use this code? what should I modify?

Thank you a lot!
05-06-2012 12:32 PM
Find all posts by this user Quote this message in a reply
Swixel Offline
Epic Member
*******

Posts: 1,087
Joined: Sep 2011
Post: #4
RE: Help. Remove Skyscraper Hotel limit
Make a "Game" folder in the same folder as Tropico 4.

Save the code in a file called skyscraper.lua (check it's not skyscraper.lua.txt).

Run Tropico 4 MT.

"I am not ashamed to confess I am ignorant of what I do not know" ― Cicero.

"You had to hand it to the Patrician, he admitted grudgingly. If you didn't, he sent men to come and take it away." ― Terry Pratchett (Guards! Guards!)
05-06-2012 08:52 PM
Find all posts by this user Quote this message in a reply
Jackaaa Offline
Newbie
*

Posts: 3
Joined: Jun 2012
Post: #5
RE: Help. Remove Skyscraper Hotel limit
(05-06-2012 08:52 PM)Swixel Wrote:  Make a "Game" folder in the same folder as Tropico 4.

Save the code in a file called skyscraper.lua (check it's not skyscraper.lua.txt).

Run Tropico 4 MT.

Smile Thank you!!!!! Thank you!!!!! Thank you!!!!! Big Grin
05-06-2012 10:28 PM
Find all posts by this user Quote this message in a reply
PizzaVideos555 Offline
Junior Member
**

Posts: 11
Joined: May 2012
Post: #6
RE: Help. Remove Skyscraper Hotel limit
(05-06-2012 12:50 AM)Swixel Wrote:  
Code:
SimpleMod = function()
    g_Classes.SkyscraperHotel.unique = 0 -- Remove Limit
    g_Classes.SkyscraperHotelModern.unique = false -- Remove limit
end

-- Only fire once
local FiredOnce = false

-- UA Set Mode
OnMsg.UASetMode = function(actions,mode)

    -- Fire until fired once
    if not FiredOnce then
        -- If we boot, trip it ...
        if(mode == "Boot") then
            FiredOnce = true
            
            -- Run the thread to bypass it
            CreateRealTimeThread(function()

                -- Do mod loading code here.
                SimpleMod()
                
            end)
        end
    end
end

How can you make the same thing but for other buildings? (I'm new to modding Tongue)

(16-08-2012 09:39 PM)PizzaVideos555 Wrote:  
(05-06-2012 12:50 AM)Swixel Wrote:  
Code:
SimpleMod = function()
    g_Classes.SkyscraperHotel.unique = 0 -- Remove Limit
    g_Classes.SkyscraperHotelModern.unique = false -- Remove limit
end

-- Only fire once
local FiredOnce = false

-- UA Set Mode
OnMsg.UASetMode = function(actions,mode)

    -- Fire until fired once
    if not FiredOnce then
        -- If we boot, trip it ...
        if(mode == "Boot") then
            FiredOnce = true
            
            -- Run the thread to bypass it
            CreateRealTimeThread(function()

                -- Do mod loading code here.
                SimpleMod()
                
            end)
        end
    end
end

How can you make the same thing but for other buildings? (I'm new to modding Tongue)
Nevermind, I did it myself! Big Grin
(This post was last modified: 16-08-2012 09:45 PM by PizzaVideos555.)
16-08-2012 09:39 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | kalypso media :: website | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication