MantisBT - Soldat Dedicated Server
View Issue Details
0000346Soldat Dedicated ServerScripting Corepublic2013-07-27 02:322015-01-13 00:30
JotEmI 
ExHunter 
normalminoralways
assignedreopened 
i386Debian GNU/Linux5.0
2.7.4 
 
0000346: Different object styles in SpawnObject() and GetObjectStat()
Object styles in SpawnObject() and GetObjectStat() for Knife and Chainsaw are switched in new version. See the attachment.
No tags attached.
xls Object styles.xls (14,848) 2013-07-27 02:32
https://bugs.soldat.pl/file_download.php?file_id=424&type=bug
Issue History
2013-07-27 02:32JotEmINew Issue
2013-07-27 02:32JotEmIFile Added: Object styles.xls
2013-07-27 14:03BistouflyStatusnew => acknowledged
2013-07-27 15:20FalconAssigned To => Falcon
2013-07-27 15:20FalconStatusacknowledged => confirmed
2013-07-29 16:11FalconStatusconfirmed => resolved
2013-07-29 16:11FalconResolutionopen => fixed
2013-08-17 11:30JotEmINote Added: 0001870
2013-08-17 11:30JotEmIStatusresolved => feedback
2013-08-17 11:30JotEmIResolutionfixed => reopened
2013-09-12 15:54FalconStatusfeedback => acknowledged
2013-12-27 23:35FalconAssigned ToFalcon =>
2014-10-23 03:47ExHunterNote Added: 0002349
2014-10-23 03:47ExHunterAssigned To => ExHunter
2014-10-23 03:47ExHunterStatusacknowledged => feedback
2015-01-12 16:59JotEmINote Added: 0002379
2015-01-12 16:59JotEmIStatusfeedback => assigned
2015-01-12 20:39ExHunterNote Added: 0002380
2015-01-12 22:17JotEmINote Added: 0002381
2015-01-13 00:30ExHunterNote Added: 0002382

Notes
(0001870)
JotEmI   
2013-08-17 11:30   
Styles in SpawnObject() have been fixed but in GetObjectStat() knife and chainsaw are still switched. Knife should have 25 and chainsaw 24.
(0002349)
ExHunter   
2014-10-23 03:47   
Does this still happen in 1.6.8b2?
(0002379)
JotEmI   
2015-01-12 16:59   
According to this http://wiki.soldat.pl/index.php/TMapObject.Style [^] Combat Knife should have Style=25. But in SC3 Map.Objects[].Style returns 24. I believe it'll be the same in SC2 since as Falcon said ScriptCore is really just a wrapper for underlying objects. Just correct the wiki entry and be done with it.
(0002380)
ExHunter   
2015-01-12 20:39   
So SC2 stuff is fine and SC3 just needs Wiki fix?
(0002381)
JotEmI   
2015-01-12 22:17   
That's not exactly what I meant.
Both SC2 and SC3 wiki pages claim that Combat Knife=25 and Chainsaw=24.
In fact, in SC3 Combat Knife is 24 and Chainsaw is 25.
I haven't checked SC2 in game but as I mentioned above it should give the same result.
Instead of fixing ScriptCore to match the wiki just edit the wiki pages.
(0002382)
ExHunter   
2015-01-13 00:30   
For SC3 I will change simply the wiki.

But it is about SC2. This requires a change in the ScriptCore, since we want to keep older scripts working (without fixes).