News: Welcome back to Bullworth! If you haven't already, you will need to reset your password..


Author Topic: Permanent Christmas?  (Read 2478 times)

0 Members and 1 Guest are viewing this topic.

Offline Santa Cole

  • "Housingly Challenged" Santa
  • Hero Member
  • ****
  • Posts: 1,099
  • Gender: Male
  • Ho Ho Ho Punk
    • View Profile
Permanent Christmas?
« on: December 03, 2015, 03:15:50 PM »
How would i go about having Christmas throughout the entire game? but still keeping the mission structure.

Thanks punks!

Offline AlphaTech

  • LostInSpace
  • Sr. Member
  • ***
  • Posts: 758
  • Gender: Male
  • The name's AlphaTECH, whatca need help with?! :)
    • View Profile
Re: Permanent Christmas?
« Reply #1 on: December 03, 2015, 03:53:47 PM »
So you want to know some shit huh faggot gtfo fake santa.  :jajaja:

Code: [Select]
AreaTransitionXYZ(0, 270, -110, 6.4000000953674)
Wait(200)
ChapterSet(2)
AreaLoadSpecialEntities("Christmas", true)
end

Make a Stimecycle.lua file and script this in, every time you start the game you should start with Christmas.

« Last Edit: December 03, 2015, 03:59:03 PM by AlphaTech »

Offline Santa Cole

  • "Housingly Challenged" Santa
  • Hero Member
  • ****
  • Posts: 1,099
  • Gender: Male
  • Ho Ho Ho Punk
    • View Profile
Re: Permanent Christmas?
« Reply #2 on: December 03, 2015, 04:05:50 PM »
Followed this tutorial (https://www.bully-board.com/index.php?topic=18725.0) but the game crashes after starting a new game.

Any help is appreciated!

Thanks Children!
« Last Edit: December 08, 2015, 12:48:45 PM by Santa Cole »

Offline Santa Cole

  • "Housingly Challenged" Santa
  • Hero Member
  • ****
  • Posts: 1,099
  • Gender: Male
  • Ho Ho Ho Punk
    • View Profile
Re: Permanent Christmas?
« Reply #3 on: December 09, 2015, 10:19:22 PM »
-Bump-

Stil having the above ho-ho-horrible issue.

Offline DaBOSS54320

  • Hero Member
  • ****
  • Posts: 3,398
  • Gender: Female
    • View Profile
Re: Permanent Christmas?
« Reply #4 on: December 10, 2015, 09:54:32 PM »
Below is a replacement script for STimeCycle.lur that should do what you want. I've also attached a Scripts.img and Scripts.dir with this script already compiled and in the scripts if you don't know what to do with the source.

Code: [Select]
function main()
-- Give the game some time to initialize:
Wait(500)

-- Main loop:
while true do
-- Set winter (seasons are based on chapter):
if ChapterGet() ~= 2 then
ChapterSet(2)
end

-- Wait:
Wait(0)
end
end

-- STimeCycle:
function F_AttendedClass()
  if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
    return
  end
  SetSkippedClass(false)
  PlayerSetPunishmentPoints(0)
end
function F_MissedClass()
  if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
    return
  end
  SetSkippedClass(true)
  StatAddToInt(166)
end
function F_AttendedCurfew()
  if not PedInConversation(gPlayer) and not MissionActive() then
    TextPrintString("You got home in time for curfew", 4)
  end
end
function F_MissedCurfew()
  if not PedInConversation(gPlayer) and not MissionActive() then
    TextPrint("TM_TIRED5", 4, 2)
  end
end
function F_StartClass()
  if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
    return
  end
  F_RingSchoolBell()
  local l_6_0 = PlayerGetPunishmentPoints() + GetSkippingPunishment()
end
function F_EndClass()
  if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
    return
  end
  F_RingSchoolBell()
end
function F_StartMorning()
  F_UpdateTimeCycle()
end
function F_EndMorning()
  F_UpdateTimeCycle()
end
function F_StartLunch()
  if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
    F_UpdateTimeCycle()
    return
  end
  F_UpdateTimeCycle()
end
function F_EndLunch()
  F_UpdateTimeCycle()
end
function F_StartAfternoon()
  F_UpdateTimeCycle()
end
function F_EndAfternoon()
  F_UpdateTimeCycle()
end
function F_StartEvening()
  F_UpdateTimeCycle()
end
function F_EndEvening()
  F_UpdateTimeCycle()
end
function F_StartCurfew_SlightlyTired()
  F_UpdateTimeCycle()
end
function F_StartCurfew_Tired()
  F_UpdateTimeCycle()
end
function F_StartCurfew_MoreTired()
  F_UpdateTimeCycle()
end
function F_StartCurfew_TooTired()
  F_UpdateTimeCycle()
end
function F_EndCurfew_TooTired()
  F_UpdateTimeCycle()
end
function F_EndTired()
  F_UpdateTimeCycle()
end
function F_Nothing()
end
function F_ClassWarning()
  if IsMissionCompleated("3_08") and not IsMissionCompleated("3_08_PostDummy") then
    return
  end
  local l_23_0 = math.random(1, 2)
end
function F_UpdateTimeCycle()
  if not IsMissionCompleated("1_B") then
    local l_24_0 = GetCurrentDay(false)
    if l_24_0 < 0 or l_24_0 > 2 then
      SetCurrentDay(0)
    end
  end
  F_UpdateCurfew()
end
function F_UpdateCurfew()
  local l_25_0 = shared.gCurfewRules
  if not l_25_0 then
    l_25_0 = F_CurfewDefaultRules
  end
  l_25_0()
end
function F_CurfewDefaultRules()
  local l_26_0 = ClockGet()
  if l_26_0 >= 23 or l_26_0 < 6 then
    shared.gCurfew = true
  else
    shared.gCurfew = false
  end
end

Offline Santa Cole

  • "Housingly Challenged" Santa
  • Hero Member
  • ****
  • Posts: 1,099
  • Gender: Male
  • Ho Ho Ho Punk
    • View Profile
Re: Permanent Christmas?
« Reply #5 on: December 10, 2015, 10:56:37 PM »
Works perfect, thanks, putting you on the nice list.

Offline Santa Cole

  • "Housingly Challenged" Santa
  • Hero Member
  • ****
  • Posts: 1,099
  • Gender: Male
  • Ho Ho Ho Punk
    • View Profile
Re: Permanent Christmas?
« Reply #6 on: December 24, 2015, 12:35:03 AM »
-Bump-

Further testing, I've noticed some issues, not much snow on the ground, and decorations aren't up in the dorm.

Thanks for any extra help!