Giter VIP home page Giter VIP logo

hazeronadviser's People

Contributors

deantwo avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

hazeronadviser's Issues

Bad graph design

Thanks to [Client Update: 7/02/2014, 7/03/2014](http://hazeron.com/phpBB3/viewtopic.php?f=3&t=6962 Forum thread) the number of reports for each city has been lowered insanely.
Rather than there always being around 18 reports, there is now only one or two.

This mean that the graphs is very empty now.

Suggestions:

  • Change the graph (or chart) type to a "bar chart" or something. This would look better when there is very few reports.
  • Merge the HSlice class into the HObj class. HSlice is no longer needed if there isn't a good number of reports to compare.

PS: [Name the graphs/charts better!](http://en.m.wikipedia.org/wiki/Chart Wikipedia:Chart)

Defauld values in HObjs

Assign default values for all strings, would suggest "-" or so.
"-" wouldn't look to bad in a DataGridView I hope.

Building reported as needed but isn't

I had one of my cities report that they wanted a morale building, but HazeronAdviser didn't say a building was needed.

It turned out that the city had a 4 homeless people, which caused the morale to report a morale building demand. But since HazeronAdviser calculates amount of buildings needed based on home count and not citizen count.

Filepath wrong for cross-platform

%USERPROFILE%\Shores of Hazeron\Mail

This line Main.cs#L36 doesn't work for Linux.

string[] fileList = Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + @"\Shores of Hazeron\Mail"); // %USERPROFILE%\Shores of Hazeron\Mail

Doesn't warn about unemployment

The AttentionCode for the cities table's "Home/Job" column isn't actived when there are too many unemployed.
Currently only warns about "job > homes".

Not all ships appear

Have to check if my ships are using another MessageType, or if it is only my ships.

Church levels needed is one short

It seems I am doing my calculations for needed extra Church levels is wrong.

Fix: Increase needed extra levels to 2 Church levels instead of 1.

Repairs replaces homes

When reading mails that have buildings that need repairs, the repairs replace homes in the city table.

homes = Convert.ToInt32(tempArray[4].Split(' ')[1]);

Mail example with repairs:

LIVING CONDITIONS
Jobs 458
Non-Construction 457
Construction 0
Repair 1
Homes 460
Apartments 0
Condominiums 444
Farms 16
Houses 0
Orchards 0
Food 312855

Morale tab's graph tooltip is wrong

The tooltip on the graph located on the Morale tab, is incorrect.

It seems to have been copied over from the Population tab's graph.

Simple fix. (When I get around to it)

New city mail causes crash

Crashes if population section of a city report is the following:

POPULATION
Citizens are Omnivorous Glabrian.
Lack of a home prevented one person from immigrating.
Population remained steady at 0.

MSG_CityIntelligenceReport can't be read

Can't read MSG_CityIntelligenceReport type messages.
This is because they don't look like normal city status reports.

Suggest to not read these mails as city status reports at all.

Loyalty on the pop-graph

Loyalty on the pop-graph isn't super good at showing loyalty going from disloyal to loyal and vica versa,

Also may need to look into how it will show a loyalty level of plain zero.

Ship Destroyed mails causes program crash

If you have a "MSG_ShipLogFinal" type mail in your mail folder it will crash the program when trying to read it.

Need to add checks to see if a category is there before trying to SubString it out.

Morale modifiers error

_vMoraleModifiers isn't cleared when more mails are read from the same city.

Left over bug from merging HSlice into HCity.

Doesn't recommend Churches for <45 pop cities

Noticed this on one of Haxus's colonies that didn't have a church and HazeronAdviser didn't say anything about it!

moraleBuildingsPop.Add("Church", 45);

One church level for every 45 pop, but it needs two extra levels for the bonus. Which seemingly isn't recommended unless the pop is more then 45.

This may also happen for Cantinas when there is less then 50 pop.

Can't see warning colors on selected row

When a row is selected, it is impossible to see the warning colors on the row.

Solution: Set dgv.Rows[i].Cells["Column"].SelectionBackColor to another color as well when applying warning colors.

Better icons needed

Need better icons, unsure if they should be the same as used in the Hazeron client or not and where to even get them.

Also may need icons with different states, like in the Hazeron client, one for each message type most likely.

While we are on the subject of icons, an icon for the program would be really good too if someone know how to make those.

MSG_CityDistressReport shouldn't be totally ignored

MSG_CityDistressReport, also known as cities that are in distress don't show up at all.

Since the city report rework last year, MSG_CityDistressReport mails are sent without the whole mail body.
Need to check if the mails only contain the DISTRESS section and ignore them if so.

Include survey report for a city's world

It might be useful to have the survey of a city's world.

This would however require the star map export XML to be imported into HazeronAdviser.
And there are some issues about the information in city reports. It might not contain reliable city location information.

Updating HObj objects don't reset all their vars

This is a problem when you for example scan your mails while you have research running.
And then scan your mails again after getting a new report where you don't have research running.

Ok. as an example research was a bad pick, because I fixed that, but for other things this is a problem.
A real solution is needed, instead of just resetting each var, because still will lead to problems when adding new vars.

Can't see who the owner is

It is currently not possible to see what empire owns the cities and ships.

Making it very confusing if you have two (or more) empires and don't remember the names of all your cities and ships.

IsUni4 throws an exception

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at HazeronAdviser.HMail.IsUni4(Byte[] mailBytes)
   at HazeronAdviser.Main.btnScan_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.

Reported by Flint.
I am thinking it has to do with an empty mail file or some.

Failure to read mails

Bug added in last commit.

Need to remove ".SubString(11)", because it is removing the number I am trying to get!

tempPopulation2 = tempArray[tempArray.Length - 1].Remove(tempArray[tempArray.Length - 1].Length - 1).Substring(11);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.