Problem with SCAR for map -1 reply

Please wait...

Guest

I didn't make it!

0 XP

 
#1 10 years ago

I have made a few maps, and have been trying to add a .SCAR file to one of them. However, I keeping finding problems in my code that I do not know how to correct (I've been checking relic's ScarDocs, and the tutorials on the Relic RDN wiki, but havn't found a solution). What I am trying to make my map do, Is give a player the appropriete relic unit for their race, when they take control of either of the two critical locations on the map. (Each location is coded for separately, with small differences - each needs the unit to be created in a different location) I *Think* most of my code is Ok, or not far off, but I can't really tell, as I'm getting a problem early on. The problem is that everytime I used EGroup_IsCapturedByPlayer(..., I'd get a fatal scar error, and had no idea what exactly was wrong. So instead of having each location as its own group, and using the EGroup command, I tried to use Entity_IsCapturedByPlayer(... but I could not find the entity ID. I tried to find the entityID for each location, by using the Entity_FromWorldID(... command, and entering the ID numbers I found in the mission editor (1024 and 1025) but this was an invalid input. Could someone please tell me either how to make the EGroup command work, or how to find the EntityID. Thankyou in advance.




Guest

I didn't make it!

0 XP

 
#2 10 years ago

never mind, I think I may have sorted it myself - I shortened my code by about 200 lines too, so there was probably lots wrong with what I had before.




kais246

Once known as Member 167465.

50 XP

21st February 2007

0 Uploads

465 Posts

0 Threads

#3 10 years ago
Mr_Pattle;4386146never mind, I think I may have sorted it myself - I shortened my code by about 200 lines too, so there was probably lots wrong with what I had before.

Lol coding is such a pain in the ass, thats why i dont mod. I never bothered to learn :P.




Junk angel

Huh, sound?

166,880 XP

28th January 2007

0 Uploads

15,678 Posts

0 Threads

#4 10 years ago

Very helpful :~

What about your error logs, it might list the part where the error appears in. If I remember correctly, scar was a line by line code.