Skip to content

Commit c08cc63

Browse files
authored
Merge branch 'dev' into Item_move_fix
2 parents b5bd83a + c8001d8 commit c08cc63

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+456
-252
lines changed

.github/workflows/build_aux_files.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
permissions:
1919
contents: write
20-
actions: write
20+
actions: read
2121

2222
runs-on: ubuntu-latest
2323
steps:

.github/workflows/build_linux_x86.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ jobs:
145145
name: Build-linux-x86
146146
merge-multiple: true
147147
run-id: ${{ github.run_id }}
148+
148149
- name: Create release
149150
uses: softprops/action-gh-release@v2
150151
env:
@@ -160,8 +161,8 @@ jobs:
160161
needs: linux-x86
161162
if: contains(fromJson('["master", "main"]'), github.ref_name) && (github.repository == 'SphereServer/Source-X')
162163
permissions:
163-
contents: read
164-
actions: write
164+
contents: write
165+
actions: read
165166

166167
runs-on: ubuntu-latest
167168
steps:

.github/workflows/build_linux_x86_64.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ jobs:
100100
name: Build-linux-x86_64
101101
merge-multiple: true
102102
run-id: ${{ github.run_id }}
103+
103104
- name: Create release
104105
uses: softprops/action-gh-release@v2
105106
env:
@@ -114,8 +115,8 @@ jobs:
114115
needs: linux-x86_64
115116
if: contains(fromJson('["master", "main"]'), github.ref_name) && (github.repository == 'SphereServer/Source-X')
116117
permissions:
117-
contents: read
118-
actions: write
118+
contents: write
119+
actions: read
119120

120121
runs-on: ubuntu-latest
121122
steps:

.github/workflows/build_osx_arm.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ jobs:
9090
name: Build-osx-arm64
9191
merge-multiple: true
9292
run-id: ${{ github.run_id }}
93+
9394
- name: Create release
9495
uses: softprops/action-gh-release@v2
9596
env:
@@ -105,8 +106,8 @@ jobs:
105106
needs: macos-arm64
106107
if: contains(fromJson('["master", "main"]'), github.ref_name) && (github.repository == 'SphereServer/Source-X')
107108
permissions:
108-
contents: read
109-
actions: write
109+
contents: write
110+
actions: read
110111

111112
runs-on: ubuntu-latest
112113
steps:

.github/workflows/build_osx_x86_64.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ jobs:
103103
upload_selfhost_release:
104104
needs: macos-x86_64
105105
if: contains(fromJson('["master", "main"]'), github.ref_name) && (github.repository == 'SphereServer/Source-X')
106+
permissions:
107+
contents: write
108+
actions: read
106109

107110
runs-on: ubuntu-latest
108111
steps:

.github/workflows/build_win_x86.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ jobs:
8585
needs: windows-x86
8686
if: contains(fromJson('["master", "main"]'), github.ref_name) && (github.repository == 'SphereServer/Source-X')
8787
permissions:
88-
contents: read
89-
actions: write
88+
contents: write
89+
actions: read
9090

9191
runs-on: ubuntu-latest
9292
steps:

.github/workflows/build_win_x86_64.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ jobs:
8484
needs: windows-x86_64
8585
if: contains(fromJson('["master", "main"]'), github.ref_name) && (github.repository == 'SphereServer/Source-X')
8686
permissions:
87-
contents: read
88-
actions: write
87+
contents: write
88+
actions: read
8989

9090
runs-on: ubuntu-latest
9191
steps:

Changelog.txt

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3659,7 +3659,7 @@ Added: 'H' shortcut for variables to get the value as hexadecimal.
36593659
- Added: @DelRedCandle trigger that triggers while red candle removing.
36603660
Args:
36613661
- I: Champion spawner uid.
3662-
- ARGO: Candle uid.
3662+
- ARGO: Candle uid. [Read Only]
36633663
- ARGN1: Reason of removing. [Read Only]
36643664
1: Timeout
36653665
2: User Command
@@ -3669,7 +3669,7 @@ Added: 'H' shortcut for variables to get the value as hexadecimal.
36693669
- Added: @DelWhiteCandle trigger that triggers while white candle removing.
36703670
Args:
36713671
- I: Champion spawner uid.
3672-
- ARGO: Candle uid.
3672+
- ARGO: Candle uid. [Read Only]
36733673
- ARGN1: Reason of removing. [Read Only]
36743674
1: Timeout
36753675
2: User Command
@@ -4064,13 +4064,20 @@ When setting a property like MORE to the a spell or skill defname, trying to rea
40644064
- Changed: Login rejection (packet `0x82`) is now sent to all clients trying to log in (used to be only to clients, that Sphere could identify).
40654065

40664066
03-11-2025, Nolok
4067-
- Fixed: Corner cases issues with number parsing from scripts.
4067+
- Fixed: Corner cases issues with number parsing from scripts (Issue #1448).
40684068
- Fixed: Function call stack messed up ordering.
40694069
- Fixed: Wrong script line pointed to in console log messages.
40704070
- Fixed: Changing Char flags didn't always trigger a full update packet.
40714071
- Fixed: Sector indexing issue.
40724072
- Changed: Made both Windows and Linux load scripts in a folder in alphabetical order.
4073+
- Added: "Old VarDef value..." log message when overwriting a DEF value during startup in debug builds (Issue #1437).
40734074

4074-
11-11-2025, Jhobean
4075+
17-11-2025, Nolok
4076+
- Fixed: CAN_O_NOSLEEP was not considered/honored at server startup (Issue #1440).
4077+
- Changed: Object timers are now saved in worldsave files as TIMERMS, to avoid ambiguity and reliance on git build number to determine if TIMER expressed a number in seconds or milliseconds.
4078+
- Changed: Added 5 seconds timeout to DNS hostname resolution at startup (avoid getting stuck when connectivity is enabled but not working).
4079+
- Changed: CANMASK formatted in worldsave files as hexadecimal number, instead of decimal.
4080+
4081+
19-11-2025, Jhobean
40754082
- Fixed: Full Tooltip now update each time you move an item manually (Issue #1500)
40764083
- Fixed: On some situation when item was move or add on ground by script, decay flag and timer was not set. (Issue #1498)

src/CMakeSources.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ set(spherelibrary_S
322322
src/common/sphere_library/CSTime.cpp
323323
src/common/sphere_library/CSWindow.cpp
324324
src/common/sphere_library/smutex.cpp
325+
src/common/sphere_library/snetwork.cpp
325326
src/common/sphere_library/sresetevents.cpp
326327
src/common/sphere_library/sstring.cpp
327328
src/common/sphere_library/sstringobjs.cpp
@@ -351,6 +352,7 @@ set(spherelibrary_H
351352
src/common/sphere_library/sfastmath.h
352353
src/common/sphere_library/smap.h
353354
src/common/sphere_library/smutex.h
355+
src/common/sphere_library/snetwork.h
354356
src/common/sphere_library/sobjpool.h
355357
src/common/sphere_library/squeues.h
356358
src/common/sphere_library/sresetevents.h
@@ -382,7 +384,7 @@ set(game_S
382384
src/game/CResourceCalc.cpp
383385
src/game/CSector.cpp
384386
src/game/CSectorEnviron.cpp
385-
src/game/CSectorTemplate.cpp
387+
src/game/CSectorBase.cpp
386388
src/game/CSectorList.cpp
387389
src/game/CServer.cpp
388390
src/game/CServerConfig.cpp
@@ -422,7 +424,7 @@ set(game_H
422424
src/game/CScriptProfiler.h
423425
src/game/CSector.h
424426
src/game/CSectorEnviron.h
425-
src/game/CSectorTemplate.h
427+
src/game/CSectorBase.h
426428
src/game/CSectorList.h
427429
src/game/CServer.h
428430
src/game/CServerConfig.h

src/common/CRect.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,12 +296,12 @@ CSector * CRect::GetSectorAtIndex( int i ) const noexcept
296296
if (g_MapList.IsMapSupported(m_map) == false)
297297
return nullptr;
298298

299-
SectIndexingHints hints = PrecomputeSectorIndexingHints();
299+
SectIndexingHints_s hints = PrecomputeSectorIndexingHints();
300300
return GetSectorAtIndexWithHints(i, hints);
301301
}
302302

303303
// get the n-th sector that makes up this rect.
304-
CSector * CRect::GetSectorAtIndexWithHints(int i, SectIndexingHints hints) const noexcept
304+
CSector * CRect::GetSectorAtIndexWithHints(int i, SectIndexingHints_s hints) const noexcept
305305
{
306306
//if (g_MapList.IsMapSupported(m_map) == false)
307307
// return nullptr;
@@ -327,7 +327,7 @@ CSector * CRect::GetSectorAtIndexWithHints(int i, SectIndexingHints hints) const
327327
return pSectors.GetSectorByIndexUnchecked(m_map, iSectorIndex);
328328
}
329329

330-
CRect::SectIndexingHints
330+
CRect::SectIndexingHints_s
331331
CRect::PrecomputeSectorIndexingHints() const noexcept
332332
{
333333
const CSectorList &pSectors = CSectorList::Get();
@@ -367,7 +367,7 @@ CRect::PrecomputeSectorIndexingHints() const noexcept
367367
const int baseCol = rect.m_left >> uiSectorShift;
368368
const int iBase = CSectorList::CalcSectorIndex(iSectorCols, baseCol, baseRow);
369369

370-
return SectIndexingHints {
370+
return SectIndexingHints_s {
371371
.iBaseSectorIndex = iBase,
372372
.iRectWidth = width,
373373
.iRectHeight = height,

0 commit comments

Comments
 (0)