News UnrealEd Files Mods FragBU Liandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Coding

Thread Tools Display Modes
Old 1st Aug 2004, 08:52 AM   #1
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, 02:21 PM   #2
>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, 07:08 PM   #3
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

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 05:21 AM.

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

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