Zandronum Chat on our Discord Server Get the latest version: 3.1
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001924Zandronum[All Projects] Suggestionpublic2014-08-17 15:212018-09-30 22:15
ReporterZzZombo 
Assigned ToTorr Samaho 
PrioritynormalSeveritymajorReproducibilityN/A
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version2.0-beta 
Target Version3.0Fixed in Version3.0 
Summary0001924: Backport IsTIDUsed() and UniqueTID() in v2.0
DescriptionThese functions are very important in script-heavy mods. The first function basically replaces ThingCount(T_NONE,<TID>), but the main advantage is that it doesn't need to count EVERY actor in the game, it stops once an actor w/ the given TID is found and it also counts dead things; currently you have to use something like if(!SpawnSpotForced("dummy",TID)) if you really have to be sure the TID is free and as you can imagine, that resource and bandwidth costly. The second function is not that important, and can be written in ACS, but those two functions better to come in pair, since one uses another.
Additional InformationI work on a mod that to be compatible w/ the most other modifications uses only free TIDs, and I imagined how horrible is the fact every call to UnusedTID() (my implementation of UniqueTID()) counts all actors present!
Attached Files? file icon 1924.wad [^] (10,077 bytes) 2015-11-26 21:52

- Relationships
child of 0002172closedTorr Samaho Upgrade GZDoom base to 1.8.6 

-  Notes
User avatar (0010213)
Monsterovich (reporter)
2014-08-17 15:54
edited on: 2014-08-17 15:59

I think, it's possible to backport all acs functions from 2.7.1 to zan 2.0.

For example: GetActorClass is VERY useful for modders and for me too, but it's 2.7.1. D:

User avatar (0010244)
Torr Samaho (administrator)
2014-08-31 19:19

I started some experiments on this in the accounts branch:'https://bitbucket.org/Torr_Samaho/zandronum-accounts [^]'
User avatar (0010246)
Edward-san (developer)
2014-09-01 08:15
edited on: 2014-09-01 08:15

The UniqueTID stuff has a problem with overflow checking and with input parameters, so there are two commits that I made to fix it in zdoom:'https://github.com/rheit/zdoom/commit/2501dc6df68e749094b4517a48c81f9a7b4fe1d2 [^]' and'https://github.com/rheit/zdoom/commit/f44dc926e6880777f96f884b42e4dd95f665b097 [^]'

User avatar (0010247)
ZzZombo (reporter)
2014-09-04 06:28

Played with the new binary given by Mazter, can confirm string manipulation and most of used functions work fine. For the rest I can't say.
User avatar (0010283)
Torr Samaho (administrator)
2014-09-21 15:33

I ported the two patches mentioned in 0001924:0010246 and transplanted everything to our main repository.
User avatar (0013886)
arkore (reporter)
2015-11-26 21:54

I tested this (1924.wad) with:
- latest zan3 build r151123-1947-980fac1 (offline)
- latest zan3 build r151123-1947-980fac1 (online)
- gzdoom 1.8.6 (offline)

Results were as expected.

Issue Community Support
This issue is already marked as resolved.
If you feel that is not the case, please reopen it and explain why.
Supporters: Monsterovich
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2014-08-17 15:21 ZzZombo New Issue
2014-08-17 15:54 Monsterovich Note Added: 0010213
2014-08-17 15:54 Monsterovich Note Edited: 0010213 View Revisions
2014-08-17 15:56 Monsterovich Note Edited: 0010213 View Revisions
2014-08-17 15:57 Monsterovich Note Edited: 0010213 View Revisions
2014-08-17 15:59 Monsterovich Note Edited: 0010213 View Revisions
2014-08-17 15:59 Monsterovich Note Edited: 0010213 View Revisions
2014-08-31 19:19 Torr Samaho Note Added: 0010244
2014-09-01 08:15 Edward-san Note Added: 0010246
2014-09-01 08:15 Edward-san Note Edited: 0010246 View Revisions
2014-09-04 06:28 ZzZombo Note Added: 0010247
2014-09-21 15:33 Torr Samaho Note Added: 0010283
2014-09-21 19:22 Dusk Assigned To => Torr Samaho
2014-09-21 19:22 Dusk Status new => needs testing
2015-05-10 22:15 WaTaKiD Target Version => 3.0
2015-05-10 22:15 WaTaKiD Relationship added child of 0002172
2015-11-26 21:52 arkore File Added: 1924.wad
2015-11-26 21:54 arkore Note Added: 0013886
2015-11-28 19:53 Dusk Status needs testing => resolved
2015-11-28 19:53 Dusk Fixed in Version => 3.0
2015-11-28 19:53 Dusk Resolution open => fixed
2018-09-30 22:15 Blzut3 Status resolved => closed






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker