Hello.
Well since my last topic (http://www.tek-tips.com/viewthread.cfm?qid=1501867&page=1) I have read quite a bit about threads, and I feel like I know it know, but I still have one question regarding data from a irc server.
I dont feel like running a while in my thread since it doesnt seem...
Hello.
I have been creating a simple irc client that connects to a server and sends some simple commands to it
I have also figured out how to retrive data from the server by using streams
The problem is I have to run a never-ending while to keep retriving all the data from the server
I do it...
Hello.
I have this wierd problem when im writing to a text file with data from a array
I have this method:
private void writeData()
{
// Open file
StreamWriter writeData = new StreamWriter(saveMonsterSetBase.FileName, false);
// Write all data from array to file
for (int x =...
Hello.
I have been creating a application that checks the application version and sees if it fits with the version from http://msbeditor.dumpen.dk/versioninfo.html
If it doesnt I use a webBrowser component to open a download link to http://msbeditor.dumpen.dk/msbEditor.rar
But this is not...
// Current lines left in the array
// Adding + 1 so it wont take the current line
linesLeft = currentLineNumber + 1;
// Looping through the rest of the lines from my array.Count
for (int i = linesLeft; i < MonsterSetBaseDataArray.Count; i++)...
So you would suggest using the length of the lines in the array?
One thing I must do is save ALL data in the array since I write to my file later on, so the lines have to fit to the array
Im using forms with visual C#
I know how to do a if where it checks if the array/text file is in the end, but the problem is that there can be some unvalid data and I dont know how to enable/disable if the data is unvalid
The text file is not the same all the time. The user can change it
So...
Hello.
I this txt file:
// Comment
2
0 0 20 177 185 4 // comment
0 0 20 75 65 4 // hi!!
0 0 20 85 65 4 // asd
0 0 20 95 65 4 // (bbb
end
Where I divide the data into valid and unvalid lines
All the data is saved into an array
The valid data is:
0 0 20 177 185 4 // comment
0 0 20 75 65 4 //...
Hello.
I have 2 questions for you
Question 1:
I got this method:
private void writeData()
{
StreamWriter writer = new StreamWriter(saveMonsterSetBase.FileName, false);
for (int i = 0; i < MonsterSetBaseDataArray.Count; i++)
{...
Ok now I got the saving text working by nor removing any data from the text file so my array looks like this:
// Test
0
0 0 0 15 15 7 // 0
end
1
1 1 30 25 25 240 240 -1 5 // 1
end
But now I ran into another problem
I have a image where I draw...
Well its not an assigment, but just a sparetime project I have been working on to develop my C# skills
As for using text files I cant rellay do anything about it, because I didn develop the game. Im just making software for it :)
I would personally prefer a sql database, but I cant rellay do...
All right..
I will try to explain again
I have the array MonsterDataArray which contains the data from the text file
The array looks like this:
0 0 0 15 15 7 // 0
1 1 30 25 25 240 240 -1 5 // 1
And both of the lines above has a line number in the array which is 0 and 1
Now I changed...
Hello.
I have a small question/problem.
I have this text file:
// Test
0
0 0 0 15 15 7 // 0
end
1
1 1 30 25 25 240 240 -1 5 // 1
end
I read it into an array in C#, but in my array I read it in as
0 0 0 15 15 7 // 0
1 1...
Hello.
I have a simple picturebox where there is a image loaded in
Im drawing a rectangle on the picturebox and when I press a button I want to invalidate it (remove the rectangle), but it doesnt seem to work
The rectangle is drawn fine and the image loads up to, but when I press my button...
Thank you for the answear(s)
Now I got it writing on the picturebox and when clicking on ellipse it shows a messagebox
But it only works for the last ellipse because the variable gp changes <.<
Any idea?
Here is the code:
public void readFileToPaint()
{
string line;
string data;
string...
Hey im back with a new questions / problems ;)
Question 1:
I have a image that is in a picturebox which is called pictureBox1
I want to read monstersetbase.txt and add small ellipses to my image. The position of the ellipse comes from my monstersetbase.txt. The image is 256x256 and the...
Thanks but I just used
private void findMonster(int monsterId)
{
StreamReader sr = new StreamReader(@monsterLocation);
int searchId = monsterId;
int actualId = 0;
string name = "(Not found)";
string[] details = null...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.