Hello everyone.
After long break I decided to come back and check the new species pack.
However, apparently with new patch a bunch of my testing mods were broken and after spending a lot of time I still cannot fix them...
Long time ago I salvaged some code from a mod that enabled user to create and remove hyperlanes between systems. My version was working just fine in all previous versions of the game, but now I cannot force it to work again.
The idea was that I can select a planet in a system, then in console put event hyperlanes.1 - game would save current system as a event target and a special window would pop up where I could select what exactly I want to do.
With new version the pop up window is not showing no matter what I do.
Below is the events code if someone would like to take a look and point me toward solution.
Much obliged for any and all help.
After long break I decided to come back and check the new species pack.
However, apparently with new patch a bunch of my testing mods were broken and after spending a lot of time I still cannot fix them...
Long time ago I salvaged some code from a mod that enabled user to create and remove hyperlanes between systems. My version was working just fine in all previous versions of the game, but now I cannot force it to work again.
The idea was that I can select a planet in a system, then in console put event hyperlanes.1 - game would save current system as a event target and a special window would pop up where I could select what exactly I want to do.
With new version the pop up window is not showing no matter what I do.
Below is the events code if someone would like to take a look and point me toward solution.
Code:
namespace = hyperlanes
# Hyperlane Editor
planet_event = {
id = hyperlanes.1
hide_window = yes
is_triggered_only = yes
immediate = {
solar_system = {
save_global_event_target_as = target
}
owner = { country_event = { id = hyperlanes.11 } }
}
}
country_event = {
id = hyperlanes.11
title = hyperlanes.1.name
desc = hyperlanes.11.desc
picture = GFX_evt_archaeological_dig
is_triggered_only = yes
option = {
name = hyperlanes.11.a
trigger = { NOT = { exists = event_target:hyperlane_start } }
hidden_effect = {
event_target:target.solar_system = { save_global_event_target_as = hyperlane_start }
country_event = { id = hyperlanes.11 }
}
}
option = {
name = hyperlanes.11.b
trigger = { exists = event_target:hyperlane_start }
allow = { NOT = { exists = event_target:hyperlane_start } }
hidden_effect = {
}
}
option = {
name = hyperlanes.11.c
trigger = { exists = event_target:hyperlane_start }
allow = { NOT = { exists = event_target:hyperlane_start } }
hidden_effect = {
}
}
option = {
name = hyperlanes.11.d
trigger = {
exists = event_target:hyperlane_start
OR = {
event_target:hyperlane_start = { is_same_value = event_target:target.solar_system }
event_target:hyperlane_start = { NOT = { has_hyperlane_to = event_target:target.solar_system } }
}
}
allow = {
event_target:hyperlane_start = {
NOT = {
is_same_value = event_target:target.solar_system
}
event_target:hyperlane_start = { NOT = { has_hyperlane_to = event_target:target.solar_system } }
}
}
add_hyperlane = { from = event_target:hyperlane_start to = event_target:target.solar_system }
hidden_effect = {
clear_global_event_target = hyperlane_start
country_event = { id = hyperlanes.11 }
}
}
option = {
name = hyperlanes.11.e
trigger = {
exists = event_target:hyperlane_start
event_target:hyperlane_start = { NOT = { is_same_value = event_target:target.solar_system } }
event_target:hyperlane_start = { has_hyperlane_to = event_target:target.solar_system }
}
remove_hyperlane = { from = event_target:hyperlane_start to = event_target:target.solar_system }
hidden_effect = {
clear_global_event_target = hyperlane_start
country_event = { id = hyperlanes.11 }
}
}
option = {
name = hyperlanes.11.f
trigger = {
exists = event_target:hyperlane_start
}
hidden_effect = {
clear_global_event_target = hyperlane_start
country_event = { id = hyperlanes.11 }
}
}
option = {
name = hyperlanes.exit
}
}
Much obliged for any and all help.