| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
|---|---|---|---|---|---|---|---|---|---|
| 0003737 | Spring engine | Lua | public | 2013-04-23 10:35 | 2013-08-16 21:47 | ||||
| Reporter | silentwings | ||||||||
| Assigned To | Kloot | ||||||||
| Priority | normal | Severity | major | Reproducibility | always | ||||
| Status | resolved | Resolution | fixed | ||||||
| Product Version | 94.1.1+git | ||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0003737: AllowStartPosition returns the wrong height | ||||||||
| Description | gadget:AllowStartPosition(x,y,z) returns the y value of the height at the point where the mouse clicked, not the point where the startpoint was placed. These can be different because if you click outside of a startbox spring auto-places the startpoint on the edge of the box.  | ||||||||
| Steps To Reproduce | Make a startbox for yourself that doesn't cover the whole map. Use the gadget below. Try to place a startpoint for yourself outside of the startbox, on a point which is obviously different height to the nearest point to your startbox. Check output from gadget. function gadget:AllowStartPosition(x,y,z,playerID) Spring.Echo(x,y,z) yh = Spring.GetGroundHeight(x,z) Spring.Echo(x,yh,z) return true end See screenshot from the output of doing exactly this.  | ||||||||
| Additional Information | *Pleaaaase* make sure you don't change that when the engine auto-places a startpoint it places that startpoint with a y value of -500. This is the *only* way I have of telling if a startpoint was genuinely placed by a player (as opposed to, if the player failed to ready and engine did it). | ||||||||
| Tags | No tags attached. | ||||||||
| Checked infolog.txt for Errors | |||||||||
| Attached Files | 
  | ||||||||
 Relationships	 | 
|||||||||||
  | 
|||||||||||
 Notes	 | 
|
| 
				
		 silentwings (reporter) 2013-04-23 10:36 Last edited: 2013-04-23 10:55  | 
	
		For screenshot, mouse was click just down the cliff from where startpoint is shown (mouse doesn't show on screenshot, lol). This is basically the same bug as http://springrts.com/mantis/view.php?id=3678 except now I think I found the cause!  | 
 Issue History			 | 
		|||
| Date Modified | Username | Field | Change | 
|---|---|---|---|
| 2013-04-23 10:35 | silentwings | New Issue | |
| 2013-04-23 10:35 | silentwings | File Added: screen00021.png | |
| 2013-04-23 10:36 | silentwings | Note Added: 0010542 | |
| 2013-04-23 10:55 | silentwings | Note Edited: 0010542 | View Revisions | 
| 2013-08-10 15:29 | Kloot | Relationship added | related to 0003665 | 
| 2013-08-16 21:08 | Kloot | Changeset attached | => spring develop 7050e21f | 
| 2013-08-16 21:08 | Kloot | Assigned To | => Kloot | 
| 2013-08-16 21:08 | Kloot | Status | new => resolved | 
| 2013-08-16 21:08 | Kloot | Resolution | open => fixed | 
| 2013-08-16 21:47 | Kloot | Relationship added | has duplicate 0003678 | 

	
