News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Reply
 
Thread Tools Display Modes
Old 1st Aug 2004, 07:52 AM   #1
[RP]Capone
Registered User
 
Join Date: Jul. 23rd, 2004
Posts: 65
DrawCrosshair bug

Ive been having a problem lately with getting my hud to display crosshairs. I decided to try using a HUDCTeamDeathMatch and it gives this log:
Error: HudCTeamDeathMatch GR-Green-Valley.HudCTeamDeathMatch (Function XInterface.HudCDeathmatch.DrawCrosshair:01F5) Accessed array 'Crosshairs' out of bounds (0/0)
If I use a custom HUD extending from HUDBase with all the functions necessary to draw the crosshair it wont display a crosshair but at least it wont get that error. I verified it is calling my function by a log. Im using the mod structure too btw... Ive looked at everything I could think of and I cant seem to figure it out. I can get my HUD and everything to work on my other mod but not this one. Has anyone had any similar issues or know what could cause this?
[RP]Capone is offline   Reply With Quote
Old 1st Aug 2004, 01:21 PM   #2
Shambler[Bishop
>Put title here<
 
Join Date: Nov. 5th, 2001
Location: Ireland
Posts: 549
It's best not to make a double post in a coding forum AND the UT2k4 mailing list at the same time, post here first and if you don't get an answer within a couple days THEN put it on the mailing list.

The problem you having there should be solved by changed all references of Crosshairs to Class'HUDCDeathMatch'.default.Crosshairs and it will use the crosshairs normally used in the DM HUD. (thus the HUD menu for Crosshairs will still work in your mod)
Shambler[Bishop is offline   Reply With Quote
Old 1st Aug 2004, 06:08 PM   #3
[RP]Capone
Registered User
 
Join Date: Jul. 23rd, 2004
Posts: 65
Thx, that solved the problem. I put it on the mailing list so epic might see it and fix the bug btw.
[RP]Capone is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:38 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer