Scripted Events Creator & Editor

This forum has been archived. Please use the new modding forum. If you need to retrieve a thread from here, contact BattleGoat.

Moderators: Balthagor, BattleGoat

Post Reply
xwerswoodx
Lieutenant
Posts: 68
Joined: Feb 16 2015
Human: Yes
Location: London, United Kingdom
Contact:

Scripted Events Creator & Editor

Post by xwerswoodx »

This is a tool for creating scripted events;
Image

Some Hints;
- The number box next to persist is persistcount
- Don't forget to recache after adding event.
- First date box equals to SR1936 start date, you can edit it for your mod. It helps to calculate difference between start date and eventdate.
- If you don't check both must true, this means condition1 or condition2 is true:
eventbcond2or
When = 0, eventconditional AND eventconditional2 must be true for event line to become active.
When = 1, eventconditional OR eventconditional2 must be true for event line to become active.
This is a example for Turkish Straits annexed by Turkey on 1st April 1936
Image

Code: Select all

13000, 36000, 0, 40, 0, 616, 609, 0, 0, 0, 0, 0, , , , , , , , , 0, 0, 0, 0, 0, 1, 0, 0, 99, 0, 0, 0, 0, 0, // Straits annexed by Turkey,
You can add this to SR1936.CSV and recache to try.

------------------------------------------------------------------------------------------------------------------------------
Quick Fix and Improvement;

A quick fix and improvement for Scripted Event Creator

I add Show Event section and fix Both must true.
Now you can edit events as well :)

Image

Paste event and click show
Image

When I generate you can see every information are same;
Image

Download (You can use any of these, all of them are same file):
http://www.mediafire.com/download/dhn5z ... reator.rar
http://dosya.co/9f1c0wjr7ygj/Scripted_E ... r.rar.html
http://s3.dosya.tc/server5/92441w/Scrip ... r.rar.html

This is my first tool programming so I am very amateur about this.
Last edited by xwerswoodx on Oct 23 2015, edited 9 times in total.
Fistalis
General
Posts: 3315
Joined: Jun 23 2009
Human: Yes
Location: x:355 y:216
Contact:

Re: Scripted Events Creator & Editor

Post by Fistalis »

When i get time i'll test this fully. This is HUGE for modders. It will help beginners use events much easier and will save a HUGE amount of time for veteran modders. If you need ANYTHING i can help with for this let me know.
Si vis pacem, para bellum
my Supreme Ruler mods Site - May it rest in peace
xwerswoodx
Lieutenant
Posts: 68
Joined: Feb 16 2015
Human: Yes
Location: London, United Kingdom
Contact:

Re: Scripted Events Creator & Editor

Post by xwerswoodx »

Fistalis wrote:When i get time i'll test this fully. This is HUGE for modders. It will help beginners use events much easier and will save a HUGE amount of time for veteran modders. If you need ANYTHING i can help with for this let me know.
Thanks for your commend, firstly I made a new little bug fix now, if you download it before, you can download it for bug fix, for help, I am always open for help, because as I said, I am very amateur about vb, just starting today because I am always waiting for new version of SRU but there is not. Before I tried to create my own sevents and everytime try to calculate time is very boring, also sometimes I miss some comma or one information and maybe make it again or try to fix and nearly takes 5-10mins, I also think this can be easy for everyone.

Also I know you from your mods and I think I can learn something from you, also if you want I can send source code if you said I have an idea for improve, because bg isn't release any modding tools so if we want to play this game I think we need to do something to keep game alive :)
YoMomma
Brigadier Gen.
Posts: 768
Joined: Jun 27 2015
Human: Yes
Contact:

Re: Scripted Events Creator & Editor

Post by YoMomma »

wow great job!
Gameplay 1st
xwerswoodx
Lieutenant
Posts: 68
Joined: Feb 16 2015
Human: Yes
Location: London, United Kingdom
Contact:

Re: Scripted Events Creator & Editor

Post by xwerswoodx »

YoMomma wrote:wow great job!
Thanks for your comment, I am very glad to hear this

And this is the v0.1 update,

Now I add resvd1 and resvd2 sections, I don't know really where we can use it but in sevents they used in 7th and 14th events, maybe they are reserved params.

Image

Also there is a new feature, you can choose scenario or make your own custom scenario settings for file;
Image

Custom;
Image

Download links were updated in first post.
Fistalis
General
Posts: 3315
Joined: Jun 23 2009
Human: Yes
Location: x:355 y:216
Contact:

Re: Scripted Events Creator & Editor

Post by Fistalis »

xwerswoodx wrote:
Fistalis wrote:When i get time i'll test this fully. This is HUGE for modders. It will help beginners use events much easier and will save a HUGE amount of time for veteran modders. If you need ANYTHING i can help with for this let me know.
Thanks for your commend, firstly I made a new little bug fix now, if you download it before, you can download it for bug fix, for help, I am always open for help, because as I said, I am very amateur about vb, just starting today because I am always waiting for new version of SRU but there is not. Before I tried to create my own sevents and everytime try to calculate time is very boring, also sometimes I miss some comma or one information and maybe make it again or try to fix and nearly takes 5-10mins, I also think this can be easy for everyone.

Also I know you from your mods and I think I can learn something from you, also if you want I can send source code if you said I have an idea for improve, because bg isn't release any modding tools so if we want to play this game I think we need to do something to keep game alive :)
I would be 0 help on the coding side of things.. but if you need anything else let me know. :wink:

(funny thing is BG has tools like this for most of the stuff us modders have to do by hand.. they just aren't what they consider worthy of a public release since many times they need to break one function to get another to work. It's good to see the communty has enough talent to offer something similar.)
Si vis pacem, para bellum
my Supreme Ruler mods Site - May it rest in peace
xwerswoodx
Lieutenant
Posts: 68
Joined: Feb 16 2015
Human: Yes
Location: London, United Kingdom
Contact:

Re: Scripted Events Creator & Editor

Post by xwerswoodx »

Oh, of course I can ask you when I stuck anywhere

This my last update (if you don't want any feature or any fix because I don't have any more ideas to improve it)

The last update has a new feature named "Hex Calculator" also have some more settings. (You can save your file with any name, and load it too also if you don't want to change it you can save it as a new file)

At this post I really want to show what the hex calculator is and how to use it.

Hex calculator is a calculator for square or rectangular.

I want to show you with an example;
in this topic (which is posted 1 years before.)
http://www.bgforums.com/forums/viewtopi ... 79&t=23539

There is a question
b. I want to create a playable nation Called south Lebanon
And answer is
This is not possible. Lebanon is not divided in the map and there is no map editor.
Ok, lets start and see if it is possible or not :p

First, let make Lebanon playable, go to SR1936.cvp file and search Lebanon and change it name to South Lebanon (It is optional)
Type to capitalx 1047
and Type to capitaly 246
Secondly, Search Syria and find (Becareful here!) Syria with number "678" and go to Grouping section and remove 608, from there so it will be;

Code: Select all

&&CVP		678
regionname	"Syria"
prefixname	"Syrian"
altregionname	"", "", ""
blocknum       6
altblocknum    
continentnum   2
flagnum        376
musictrack     2
regioncolor    0xFF8A0FA9
politic        -1
govtype        4
refpopulation  3.495
poptotalarmy   25000
popminreserve  10000
treasury       
nationaldebtgdp     
techlevel      12
civapproval    0.38
milapproval    
fanaticism     
defcon         1
loyalty        
playeragenda   
playeraistance     
worldavail     ZW
armsavail      
worldintegrity     0.5
treatyintegrity    0.7
envrating      
milsubsidyrating   
domsubsidyrating   
creditrating   0.79
tourismrating  
literacy       0.61
lifeexp        64.69
avgchildren    
crimerate      14.97
unemployment   0.1297
gdpc           127
inflation      
buyingpower    
prodefficiency 
alertlevel     0
bwmmember      0
religionstate  
bconscript     0
forcesplan     
milspendsalary 
milspendmaint  
milspendintel  
milspendresearch   
RacePrimary    4
RaceSecondary  4
capitalx       
capitaly       
masterdata     0
nonplayable    0
influence      , , , 
influenceval   , , , 
couppossibility    0.7
revoltpossibility  0.35
independencedesire 
parentloyalty  
independencetarget 
sphere         0
civiliansphere 0
keepregion     0
parentregion   1689
theatrehome    5

&&GROUPING		678
607, 

&&REGIONTECHS		678

&&REGIONUNITDESIGNS		678

&&REGIONPRODUCTS		678
9, , 18, , 

&&REGIONSOCIALS		678

&&REGIONRELIGIONS		678
And now launch the Game and select any country and start 1936 sandbox campaign.

Ok click to loyalty overlay and we can see Lebanon line. So now we just give half of them to Syria
(if you take cache before that section you can see Lebanon on map.)

This is a Lebanon
Image

In the red line we will give to Syria
Image

For hex calculator, we need to take left top and right bottom sides to calculate hex so;
Image

Our left top and right bottom sides are in circle now. Just take their coordinates.

And now launch Scripted Event Calculator;
Type 30000 in ID
Select 44 - Transfer hex owner from Event ID
Select 608: Lebanon from Region
Select 678: Syria from Other Region
Type 1045 to i0 (Left top X)
Type 240 to i1 (Left top Y)

Click Settings (if you don't use Always show settings option)
There is a hex calculator and
Type 1052 to first box
Type 245 to second box
Select i0 from other box (This should be equal to left top X)

After that, you just click Calc and wait until application said "Hex calculating finished."

Image

After this message go to folder where you put application
There will be a file named hex (or hex.txt depends on your folder settings)

Open it and all the hex codes are there.

Code: Select all

30000, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1045, 240, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30001, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1045, 241, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30002, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1045, 242, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30003, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1045, 243, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30004, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1045, 244, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30005, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1045, 245, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30006, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1046, 240, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30007, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1046, 241, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30008, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1046, 242, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30009, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1046, 243, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30010, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1046, 244, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30011, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1046, 245, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30012, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1047, 240, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30013, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1047, 241, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30014, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1047, 242, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30015, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1047, 243, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30016, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1047, 244, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30017, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1047, 245, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30018, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1048, 240, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30019, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1048, 241, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30020, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1048, 242, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30021, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1048, 243, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30022, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1048, 244, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30023, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1048, 245, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30024, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1049, 240, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30025, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1049, 241, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30026, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1049, 242, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30027, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1049, 243, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30028, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1049, 244, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30029, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1049, 245, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30030, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1050, 240, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30031, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1050, 241, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30032, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1050, 242, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30033, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1050, 243, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30034, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1050, 244, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30035, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1050, 245, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30036, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1051, 240, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30037, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1051, 241, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30038, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1051, 242, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30039, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1051, 243, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30040, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1051, 244, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30041, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1051, 245, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30042, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1052, 240, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30043, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1052, 241, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30044, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1052, 242, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30045, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1052, 243, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30046, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1052, 244, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
30047, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1052, 245, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
Now I just want to give french base to Lebanon because they can't build any military base (it is very expensive).
1048, 245

Search this and find and remove that line

Code: Select all

30023, 0, 0, 44, 0, 608, 678, 0, 0, 0, 0, 0, 1048, 245, , , , , , , 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // ,
And now recache game and see what is the result.
Image

Did you see, just take 2 minutes to make this.
Last edited by xwerswoodx on Oct 19 2015, edited 1 time in total.
Fistalis
General
Posts: 3315
Joined: Jun 23 2009
Human: Yes
Location: x:355 y:216
Contact:

Re: Scripted Events Creator & Editor

Post by Fistalis »

xwerswoodx wrote:snip
Awesome update.. you have any idea how many lines of code i had to input by hand to add south sudan in the SRCW version of modern world? :lol:

Would you mind if i copied your OP and hosted a thread for this on my forums? (id be happy to give you moderator status over the thread if you wish)

It's been a busy work week so I haven't had time to play with it much but i'm sure when I do i'll have a plethora of questions etc. Does it read directly from the files.. thats to say if you modded a file will it read directly from your modded file or does it read from a preset database?
Si vis pacem, para bellum
my Supreme Ruler mods Site - May it rest in peace
xwerswoodx
Lieutenant
Posts: 68
Joined: Feb 16 2015
Human: Yes
Location: London, United Kingdom
Contact:

Re: Scripted Events Creator & Editor

Post by xwerswoodx »

Fistalis wrote:
xwerswoodx wrote:snip
Awesome update.. you have any idea how many lines of code i had to input by hand to add south sudan in the SRCW version of modern world? :lol:

Would you mind if i copied your OP and hosted a thread for this on my forums? (id be happy to give you moderator status over the thread if you wish)

It's been a busy work week so I haven't had time to play with it much but i'm sure when I do i'll have a plethora of questions etc. Does it read directly from the files.. thats to say if you modded a file will it read directly from your modded file or does it read from a preset database?
Hahahha, I don't have CW but if I guess, sudan is a very big country so it should be between 150 and 300 :p

You can post, share, host and you can do anything you want except commercial use. Because of the app icon author don't agree commercial usage, I explain it in About page, for moderator status, if you can give edit post permission to update links is enough for me, because I can update my program, or fix anything anytime :p

For question, I don't understand clearly. Firstly I think you asking where region and events reading by app, it was in code but this give me idea and I update the application, so now it read from regions.uid and events.uid.

Secondly, when you ask preset database, I think you asking is it read from csv or code, and this give me another idea to me too. And I make a cache file button for you at the end of the menu. Normally I was using different application which is coded by me too to read from CVP and create region cache but I added it into this. Now you can take cache of your .CVP file, for example if you click world and select cvp file from your SR folder (for example SR1936.CVP) it start to cache it and when it finished in your application folder there will be a cache.uid file just change it name to regions.uid and of course delete last one and restart application, after that application start working with your regions.uid.

Or if you want to add countries manually you can use ID: Name pattern, pattern should be ID: Name because if you don't use : before name, application can't split two information and cannot generate properly.

If you share this in your website or forum please let me now the link to add Links section in Application.

Also before sharing this update I will wait your answer which file you want to application read from any file and if I can, I will make it.
Fistalis
General
Posts: 3315
Joined: Jun 23 2009
Human: Yes
Location: x:355 y:216
Contact:

Re: Scripted Events Creator & Editor

Post by Fistalis »

xwerswoodx wrote:
Fistalis wrote:
xwerswoodx wrote:snip
Awesome update.. you have any idea how many lines of code i had to input by hand to add south sudan in the SRCW version of modern world? :lol:

Would you mind if i copied your OP and hosted a thread for this on my forums? (id be happy to give you moderator status over the thread if you wish)

It's been a busy work week so I haven't had time to play with it much but i'm sure when I do i'll have a plethora of questions etc. Does it read directly from the files.. thats to say if you modded a file will it read directly from your modded file or does it read from a preset database?
Hahahha, I don't have CW but if I guess, sudan is a very big country so it should be between 150 and 300 :p

You can post, share, host and you can do anything you want except commercial use. Because of the app icon author don't agree commercial usage, I explain it in About page, for moderator status, if you can give edit post permission to update links is enough for me, because I can update my program, or fix anything anytime :p

For question, I don't understand clearly. Firstly I think you asking where region and events reading by app, it was in code but this give me idea and I update the application, so now it read from regions.uid and events.uid.

Secondly, when you ask preset database, I think you asking is it read from csv or code, and this give me another idea to me too. And I make a cache file button for you at the end of the menu. Normally I was using different application which is coded by me too to read from CVP and create region cache but I added it into this. Now you can take cache of your .CVP file, for example if you click world and select cvp file from your SR folder (for example SR1936.CVP) it start to cache it and when it finished in your application folder there will be a cache.uid file just change it name to regions.uid and of course delete last one and restart application, after that application start working with your regions.uid.

Or if you want to add countries manually you can use ID: Name pattern, pattern should be ID: Name because if you don't use : before name, application can't split two information and cannot generate properly.

If you share this in your website or forum please let me now the link to add Links section in Application.

Also before sharing this update I will wait your answer which file you want to application read from any file and if I can, I will make it.
Getting ready to leave for work So quick responses. As to which file I want it to read from i just would like someway for it to read from say teh .CVP etc so that if i have already added nations etc via manual entries then i could edit them with the app.

As to hosting/sharing your work on my forums I have started a subboard in the modding tools dedicated to your program. You should have moderator status for that sub board. If you run into any issues just let me know. (feel free to edit/fix the main thread as you see fit i just copy/pasted the OP of this thead)

With your permission i'd also like to host a dropbox link for downloads since it is less intrusive and easier to download for those who can use it. (drop box is blocked in some countries like china)

http://fistalis.proboards.com/board/24/eventeditor
Si vis pacem, para bellum
my Supreme Ruler mods Site - May it rest in peace
xwerswoodx
Lieutenant
Posts: 68
Joined: Feb 16 2015
Human: Yes
Location: London, United Kingdom
Contact:

Re: Scripted Events Creator & Editor

Post by xwerswoodx »

Fistalis wrote: Getting ready to leave for work So quick responses. As to which file I want it to read from i just would like someway for it to read from say teh .CVP etc so that if i have already added nations etc via manual entries then i could edit them with the app.

As to hosting/sharing your work on my forums I have started a subboard in the modding tools dedicated to your program. You should have moderator status for that sub board. If you run into any issues just let me know. (feel free to edit/fix the main thread as you see fit i just copy/pasted the OP of this thead)

With your permission i'd also like to host a dropbox link for downloads since it is less intrusive and easier to download for those who can use it. (drop box is blocked in some countries like china)

http://fistalis.proboards.com/board/24/eventeditor
I didn't use dropbox but if you upload I can share link :)

For your question I would like to explain it with pics so lets start;

When you download last version of application (which was uploaded today) you will see regions.uid file in your app folder.
Image

You can open with any text editor (I am using notepad++)
Image

You can add any variable there like 1: Hamit
Image

And when you launch application
Image

Everytime to launch your application, 1: Hamit (or what you add) will be there.

If you have a problem with regions.uid file or if you have any CVP file which hasn't got same id's with this. (Like, USA 10000, South Sudan 8000) you can click the world button and just select your CVP, the application create cache.uid (it can take 10 mins depends on your system) and create cache.uid file in your application folder, just change it name to regions.uid
vahadar
Colonel
Posts: 257
Joined: May 19 2010
Human: Yes

Re: Scripted Events Creator & Editor

Post by vahadar »

Wow just saw that today, you have my HUGE thanks !!!

This will save me countless time of doublechecking mistakes i write in my .csv from now !

The hex calculator is probably the best feature for me right now, really a time saving tool !! Also enjoying the rest, already playing with it now :)

I also really like the reverse engineering with the show button, very usefull to understand and edit the actual sandbox or campaign csv files.
xwerswoodx
Lieutenant
Posts: 68
Joined: Feb 16 2015
Human: Yes
Location: London, United Kingdom
Contact:

Re: Scripted Events Creator & Editor

Post by xwerswoodx »

vahadar wrote:Wow just saw that today, you have my HUGE thanks !!!

This will save me countless time of doublechecking mistakes i write in my .csv from now !

The hex calculator is probably the best feature for me right now, really a time saving tool !! Also enjoying the rest, already playing with it now :)

I also really like the reverse engineering with the show button, very usefull to understand and edit the actual sandbox or campaign csv files.
I thanks you too for your comment. I am very happy if it helps you to improve your code :)

If you like reverse engineering, I think the next update is very useful for you, because I am very happy to notice the next update's main improvement is reverse engineering.

I reply your post little bit late because I didn't have enough time last two days, sorry for that.

Next update will be release soon (as soon as possible of course :)) At the next update, you can manage your application more, also you can load .csv files and you can select event directly.

Because of loading items (event ids, regions, other regions and 5000 lines csv files) application take a little longer (approx 15 seconds) to Launch. But, if you copy .cvp file and remove everything except sevents, and choose your new .csv file from settings, it can be more quick. (You can turn off this feature from settings.)

Also this version has some little fix and new features as well, for example, now you can see your last saved 13 scenarios like SR1936. (Quick Launch) and of course some performance improvement and now settings saved as .ini file so you can easily edit it from file (Not recommended except necessary edit.)

This version hasn't finished yet, but I can share with you some new features.

Event Feature
Image

New Settings
Image
Image

Quick Launch
Image

Here, you can see radios on right side of application, which are invisible. They come under World2020 when you save or load any file. (It sorted everytime last used item come to top (under World2020)) Also in that picture you can see Delete icon on the right top of application, this can remove file from Quick Launch but it isn't delete any file.

Here is my first and the last saved file you can see it at Quick Launch section, "A" is name of my saved file.
Image

I am really sleepy now, so I guess the next update will be release tomorrow, but if I finished all new features in this night, I will release v0.3 version this night.
xwerswoodx
Lieutenant
Posts: 68
Joined: Feb 16 2015
Human: Yes
Location: London, United Kingdom
Contact:

Re: Scripted Events Creator & Editor

Post by xwerswoodx »

Today, I finished new version and start to test it.

There are several new features and also some performance improvement.

Firstly, cache time reduced to 1.5 minutes from 15 minutes, it is 10%, isn't it?
Secondly, SR1936, Cold_War and World_2020 scenarios is changed and now they read more quick than before.
Also, Reload button is removed, because now you can reload which scenario you want with clicking it's radiobutton.
Another feature is quick launch and it is sorted every time you load or save.

Image

It seems more better hah?

Another feature is settings moved to settings section and now you can easily edit and save your settings.

Image
Image
Image

Also I draw new icon, because of I don't want to think about licence of anyone's icon, so now we are totally free to use application.

As I said before, reverse engineering also improved, now you can load your .csv file to see events more quicker and easily.

Now I am working on User Interface to make application more quick, easy and understandable for you.

I am now uploading application and this means it will be first post after ten minutes.

//Links updated.
xwerswoodx
Lieutenant
Posts: 68
Joined: Feb 16 2015
Human: Yes
Location: London, United Kingdom
Contact:

Re: Scripted Events Creator & Editor

Post by xwerswoodx »

I hadn't released any new versions after v0.3 and I think to format my computer and I want to share my source code maybe someone need it.

v0.3 Source Code:
http://www.mediafire.com/download/guc9y ... r_v0.3.rar

v0.4 Source Code (Has language support but not totally completed):
http://www.mediafire.com/download/x40xl ... r_v0.4.rar
Post Reply

Return to “Modding SRUltimate”