Commit Graph

35 Commits

Author SHA1 Message Date
Selis
28e969778c code/global.dm => code/_global_vars/ (#17244)
* 1

* Full conversion

* .

* .

---------

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
2025-04-21 05:55:25 -04:00
Selis
21dcf0555b Conversion many Globals to Managed Globals (Part 1) (#17121)
* Conversion of some Globals to Managed Globals

* Fix

* for later

---------

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
2025-04-17 14:16:53 -04:00
Cameron Lennox
b431c4efb2 ATC Refactor (#17237)
* Bazinga

* moved to global var

* moved to subsystem

* susbsys fixes

* invoke async

* stable but fighting optimization

* missed delay

* makes this a subsystem

* Makes a base announce_atc proc.

* mob_announce_cooldown

* defs

* rocks

---------

Co-authored-by: Willburd <7099514+Willburd@users.noreply.github.com>
2025-03-14 23:00:24 +01:00
Drathek
196bbd28e9 Refactor hardcoded lateloaded map define zs (#17290)
* Refactor hardcoded lateloaded map define zs to use a GLOB list instead

* Refactor groundbase wilds loading

* new to init docking codes

* fix space whales excessive deleting

* update comment

* Forgot some aliases

* How is this now a missing turf
Remove duplicate turf
2025-03-09 14:06:25 -04:00
Kashargul
46bea7cfa2 Initialize fixing (#17279)
* Initialoize fixing

* diff fix

* add init grep test

* fixed missed ones

* .

* some more

* ,
2025-03-08 13:59:29 -05:00
Selis
5fbc920d1a Disables the default logging of some testing procs (#17190) 2025-02-23 17:34:25 +01:00
Runa Dacino
0e365955e1 Fix(Overmap): Fixes distress beacons blaring "REPLACE ME"
initial(name) works fine for round-start shuttles with compile-time names. Unfortunately, lateloading and vvaring is not compile-time, but runtime. Thus, they do not work.

This makes sure they do work. I will add an admin handbook note on using real_name when making lateload or vvar stuff and planning on emergency beacons.

refactor(overmap): Makes get_scan_data more readable

Using ternary operators, makes the scan data proc more readable.
2023-09-02 23:05:49 +02:00
ItsSelis
10d2178516 More 515 Compatibility 2023-06-05 19:29:40 +02:00
Runa Dacino
ffe34ae887 Update sectors.dm 2023-04-07 14:32:24 +02:00
Runa Dacino
2f6dc67e42 Adjusts sectors to have real_icons
* Previous implementation relied on icon and icon_state at compile time.
* This prevented GMs from editing icon_state, as it always reverted to defaults when scanned
* GMs can now edit real_icon using var edit->E "Icon" to use non-standard icon_states
* GMs can now edit real_icon_state to choose specific state as a simple text var type edit
* GMs can call a proc called gmtools_update_omobject_vars(setToHidden) with an argument that forces known locations to become unknown again with an arg of "1"
* If GM uses arg of 0, proc simply changes how pilots inside the sector see their own ship by updating real_appearance with real_icon_state
2023-04-07 14:19:43 +02:00
Runa Dacino
9425efbffe Fixes compile_pois failing 2023-03-06 21:07:42 +01:00
Runa Dacino
38f9021146 Creates framework for renaming visitable overmap objs 2023-03-06 19:46:47 +01:00
VerySoft
4b4d21534e Docking code change
Don't set docking codes if docking codes are already set
2021-10-27 19:52:57 -04:00
Aronai Sieyes
df3bb7812f Fixes #11223 2021-07-24 16:41:37 -04:00
Aronai Sieyes
34982728cb Add 'as anything' to various for loops 2021-07-20 12:39:59 -04:00
MarinaGryphon
577b986ba6 Convert some bools to TRUE/FALSE instead of 1/0. (#11100)
Co-authored-by: Aronai Sieyes <arokha@arokha.com>
2021-07-16 13:43:25 -04:00
Aronai Sieyes
a2e89aebc6 Fix annoying skybox bugs 2021-07-10 17:43:33 -04:00
Aronai Sieyes
2c19aef773 Show proper original name on 'un-revealed' ships 2021-07-09 01:37:50 -04:00
Aronai Sieyes
fb489e1edc Actual code changes for ship icons 2021-06-29 21:22:31 -04:00
Aronai Sieyes
9a948ca38a Small tweaks and more sound 2021-06-09 17:37:41 -04:00
Aronai Sieyes
10a08e84fc Add distress beacon 2021-06-09 16:59:50 -04:00
Aronai Sieyes
1719982d76 Fix mapdatum empty z cache and fix spacetravel 2021-05-24 17:01:33 -04:00
Leshana
0a461a507b Fix sector initialization stack overflow crash.
- Replace changes from 8c7371c5d4b900308cecdba5335989e8c9f191fe
    - Removed debugging prints in skybox generation
    - Reverted change to GetConnnectedZLevels to avoid the chicken-or-egg initialization issue of find_z_levels() requiring knowledge of a sector's z-levels during the attempt to determine a sector's z-levels.
    - Make find_z_levels() always called again so that lazy open space initialization works on landable ships again.
- Instead, allow static configuration of sector map_z to override the default behavior of calling GetConnectedZLevels()
2020-06-25 11:10:02 -04:00
Atermonera
ebe7bd1975 Enables overmap on SC, adds Sif to SC skybox (#6954)
* Enables overmap on SC, adds wip Sif to SC skybox

* codersprites
2020-06-25 11:10:02 -04:00
Leshana
32a8f8a455 Fixed build_overmap() to actually work. 2020-05-02 22:24:03 -04:00
Aronai Sieyes
bed4f26f95 Fix what's considered station levels 2020-04-26 12:10:29 -04:00
Aronai Sieyes
3551edd8cc Improve ship scanners 2020-04-17 13:11:03 -04:00
Aronai Sieyes
4e0a62996b Add nav console modular program and fix crew mon bug 2020-04-12 22:52:57 -04:00
Aronai Sieyes
09003a6c61 Improve space map edges 2020-04-02 01:08:07 -04:00
Aronai Sieyes
834af70066 Add 'extra z levels' var on sectors 2020-03-26 15:58:23 -04:00
Aronai Sieyes
c994134b23 Add tooltips to visitable sectors on the overmap 2020-03-20 14:19:54 -04:00
Leshana
9cbdf184ff Ported Basic Overmap Functionality
- Ports the overmap, ships, sectors, and "landable" ships from baystation.
- Ports necessary computers to control ships and overmap shuttles.
- Shims missing machine and computer functionality pending future enhancements.
- Includes required new sprites and sounds.
2020-03-11 11:11:40 -04:00
Leshana
c837078105 Replaced "area" shuttles with "landmark" shuttles.
Largely ported from the work done at Baystation in https://github.com/Baystation12/Baystation12/pull/17460 and later commits.

 - Shuttles no longer require a separate area for each location they jump to.
   Instead destinations are indicated by landmark objects, which are not necessarily exclusive to that shuttle.
   This means that more than one shuttle could use the same docking port (not at the same time of course).
 - Enhanced shuttle control computers to use nanoui if they didn't.
 - Organizes shuttle datum code a bit better so there is less re-inventing the wheel in subtypes.
 - Allows the possibility of shuttles (or destinations) that start on late-loaded maps.
 - Deprecate the "extra" shuttle areas that are no longer needed and update shuttle areas in unit tests

This all required a bit of infrastructure improvements.

 - ChangeArea proc, for changing the area of a turf.
 - Fixed lighting overlays actually being able to be destroyed.
 - Added a few utility macros and procs.
 - Added "turf translation" procs which are like move_contents_to but more flexible.
2020-03-05 10:29:08 -05:00
PsiOmega
1ae0ad6d92 Updates the atom_pool, now datum_pool, to handle any datum object.
Makes the garbage collector similarly robust. Continues the whole Destroy/qdel porting.
2015-04-24 09:59:05 +02:00
Chinsky
2a1f0849d8 Cleaned out my WIP folder. 2015-02-03 08:27:18 +03:00