Spoonist said:->pimparel
Anything else missing?
Spoonist said:New v1.2.0.36
Added a 'View Picture' button that lets you preview the picture and also toggle through all pictures in the db folder. (I will add a read all pictures button and a browser to this later on).
Spoonist said:Now I wish that all who use it would put in wishlists and bugs so that I can stop calling it a beta...
Spoonist said:New v1.2.0.36
Added a 'View Picture' button that lets you preview the picture and also toggle through all pictures in the db folder. (I will add a read all pictures button and a browser to this later on).
Spoonist said:You can now see a preview of an AI builder by clicking on the 'test' button.
Spoonist said:Does anyone have a list of all ocean provinces? Id's and tags...
Keep it coming...The man is a genius
Spoonist said:Well I thougt that I should expand the concept to something like a Spoonist's Modding Utility. So I checked out what needed to be done to inlcude AI modding, and that was easy compared to events...
...
1418;Turkish;Sunni;farmers;;;;29[b]<ENTER><EOF>[/b]
...
1418;Turkish;Sunni;farmers;;;;29[b]<ENTER>[/b]
[b]<ENTER><EOF>[/b]
pimparel said:Spoonist,
I do have a request for you, it's simple and don't have anything to do with the event builder.
Working with VIP release, last night I ran into 992 POP.csv files, the main problems is: every file must have an empty line after the last line.
Example:
Wrong format
Code:... 1418;Turkish;Sunni;farmers;;;;29[b]<ENTER><EOF>[/b]
Right format
Code:... 1418;Turkish;Sunni;farmers;;;;29[b]<ENTER>[/b] [b]<ENTER><EOF>[/b]
where <EOF> means End-of-file.
Last night, I lost 4 hours opening all 992 files and checking if there is an empty line in those. I may have missed some.
Resuming in all, what I want is to know IF you can make an utility to check if there is an empty line in all *.csv.
I think that this must be quite easy to do, but I am iliterate in programming. If you can pull this off, you will named as my Personal hero!, and I think that Paradox and all the other modders would thabk you also.
Thanks for you time, and I do hope that you answer my call.
Pimparel
Ilkhold said:
Ilkhold said:
procedure SearchDir (DirName : String; Extension : String; var Resultlist : TStringList);
var FileSearch : TSearchRec;
Result : Integer;
begin
if DirName[Length(DirName)] <> '\' then
DirName := DirName + '\';
Result := FindFirst(DirName + Extension,faAnyFile,FileSearch);
while (Result = 0) do begin
ResultList.Append(DirName + FileSearch.Name);
Result := FindNext(FileSearch);
end;
FindClose(FileSearch);
end;
procedure TForm1.Button1Click(Sender: TObject);
var FileList, TempFile: TStringList;
i: Integer;
begin
FileList := TStringList.Create;
SearchDir(Edit1.Text, '*.csv', FileList);
for i := 0 to FileList.Count - 1 do
begin
TempFile := TStringList.Create;
TempFile.LoadFromFile(FileList[i]);
if TempFile[TempFile.Count-1] <> '' then
begin
TempFile.Append('');
TempFile.SaveToFile(FileList[i]);
end;
TempFile.Free;
end;
MessageDlg('Checked ' + IntToStr(FileList.Count) + ' files',mtInformation,[mbOk],0);
FileList.Free;
Application.Terminate;
end;
Spoonist said:->Scythe
OK. Rewrote it somewhat. Instead of the user putting in the path manually I read the registry directly.
This meant that I had to put in another reference (regtool5.dll) but that is included in the full installation.
Tested it on two machines with the installation in different folders and it worked like a charm.
Ilkhold said:It reads all files in the specified directory and puts a dialog which says how many it checked. Everything I wrote was in english.
If you're getting german error messages then there is some error with the programme, I can't say what that would be, I have done some basic testing and it worked. Send me a PM with the Error Message and description how you got it, then I'll take another look at it.
Ok, the programme DOES check the last line, but it seems that check doesn't work as intended. I'll try to get it done properly.pimparel said:Ilkhold,
Anyway, if you can make an hack with checks if there is one empty line at the end of file, it would be a great help, and would increase our efficiency at VIP 0.11 release.
This says, that saving the file doesn't work. Did you have that open in some editor?The error was:
datei C:\Games\Victoria\scenarios\VIPscen\pops\argentina_guarani1.csv kann nicht erstellt werden.