Page 1 of 1

For Debugging purposes

Posted: Sat Mar 24, 2018 11:03 pm
by MeteoricDragon
For Debugging purposes, what command can I put in the C# code to output the value of a variable while playing Daggerfall Unity? Like a messagebox?

Re: For Debugging purposes

Posted: Sat Mar 24, 2018 11:15 pm
by Hazelnut
Usually you would have something like these statements and you would see the messages in the console:

Code: Select all


Debug.Log("Quest pool has " + pool.Count);

Debug.LogFormat("faction id: {0}, social group: {1}, guild: {2}, building guild: {3}", 
	npc.Data.factionID, 
	(FactionFile.SocialGroups)factionData.sgroup,
	(FactionFile.GuildGroups)factionData.ggroup,
	(FactionFile.GuildGroups)buildingFactionData.ggroup);

Re: For Debugging purposes

Posted: Fri Mar 30, 2018 12:39 am
by MeteoricDragon
Thanks for your help!